From 5237056c908458b79a2536588266b04e0abcaef2 Mon Sep 17 00:00:00 2001 From: Pascal Chevrel Date: Wed, 10 Jul 2024 16:55:48 +0200 Subject: [PATCH] Nightly Page: add an Android icon for Focus/Fenix/GeckoView bugs --- app/views/templates/base.html.twig | 2 +- app/views/templates/nightly.html.twig | 10 ++++++++-- public/assets/img/android.svg | 1 + public/style/base.css | 13 +++++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 public/assets/img/android.svg diff --git a/app/views/templates/base.html.twig b/app/views/templates/base.html.twig index 5e269758..b07dbb44 100644 --- a/app/views/templates/base.html.twig +++ b/app/views/templates/base.html.twig @@ -6,7 +6,7 @@ - + diff --git a/app/views/templates/nightly.html.twig b/app/views/templates/nightly.html.twig index 8a1f1b3e..e9f25805 100644 --- a/app/views/templates/nightly.html.twig +++ b/app/views/templates/nightly.html.twig @@ -45,7 +45,7 @@

-
+
{% if outstanding_bugs[dataset.buildid].bugs %} @@ -121,14 +121,20 @@ {%- for details in bug_list[dataset.buildid].bugs -%} + {%- set alert_link = '' -%} {%- set alert_title = '' -%} {%- set alert_row = '' -%} + {%- set product = '' -%} + {%- set pill_level = 'text-bg-light border' -%} {%- if details.type == 'enhancement' -%} {%- set alert_link =' text-success fw-bold' -%} {%- set alert_title =' title="Bug marked as Enhancement"' -%} {%- endif -%} + {%- if details.product == 'Fenix' or details.product == 'GeckoView' or details.product == 'Focus' -%} + {%- set product = 'android' -%} + {%- endif -%} {%- if bug_list_karma[details.id].score > 8 -%} {%- set pill_level ='text-bg-warning' -%} {%- endif -%} @@ -140,7 +146,7 @@ {# do nothing #} {% else %} - {{ details.id }} + {{ details.id }} {{ details.component }} {{ bug_list_karma[details.id].score }} diff --git a/public/assets/img/android.svg b/public/assets/img/android.svg new file mode 100644 index 00000000..4067a05f --- /dev/null +++ b/public/assets/img/android.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/style/base.css b/public/style/base.css index 94298782..7c2808ad 100644 --- a/public/style/base.css +++ b/public/style/base.css @@ -303,3 +303,16 @@ footer { margin-left:0.5em; } +/* override Bootstrap striped styles as they don't allow background images */ +#nightly table tr:nth-child(odd) td { + box-shadow: none !important; + background-color: #ecedee !important; +} + +#nightly td.android { + background-image: url("/assets/img/android.svg"); + background-repeat: no-repeat; + background-size: 1em; + background-position-x: 10px; + background-position-y: center; +} \ No newline at end of file