From nobody Tue May 13 15:38:26 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1538145956054894.9215155868582; Fri, 28 Sep 2018 07:45:56 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DB27381DEC; Fri, 28 Sep 2018 14:45:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9F705D777; Fri, 28 Sep 2018 14:45:54 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id BADCE4BB74; Fri, 28 Sep 2018 14:45:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w8SEjri3024602 for ; Fri, 28 Sep 2018 10:45:53 -0400 Received: by smtp.corp.redhat.com (Postfix) id A7FB62010D9A; Fri, 28 Sep 2018 14:45:53 +0000 (UTC) Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E6572010D95 for ; Fri, 28 Sep 2018 14:45:53 +0000 (UTC) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 895A73082142 for ; Fri, 28 Sep 2018 14:45:52 +0000 (UTC) Received: by mail-wm1-f45.google.com with SMTP id o18-v6so2506907wmc.0 for ; Fri, 28 Sep 2018 07:45:52 -0700 (PDT) Received: from donizetti.par1.mozilla.com ([2a00:8c40:243:232:de:fba5:535e:2dc2]) by smtp.gmail.com with ESMTPSA id n68-v6sm1884636wmn.5.2018.09.28.07.45.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Sep 2018 07:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=q5eWrI2kWogtaVi3eEO9Xr1x553Cf4kdmeg90vAybrg=; b=kqs+RQSxndkk4PGVqLRJu+bVsRSZeRJq/CeEFufnxk3bxa06gZ9KE08G6oLObrFrRe 5vaKnq6/RhpuDUmLcwsGP/LI5k0J6HJ72Jf59XtlGqwlNwC7DFv0nFvWgpwb1FfKJ1Yj NJ9LvCqEdX9pnwm2HQ+NumPUe3wNZr/HsF81pQ1LjQs8QMehmizqcdUv7d2ddJH+AnvF ZII98Ih8OMX4yj0+mpWAg3an/lDpsiwBMRKHdRM5bNE2p+ELsMPYymGkMlzRGb3+PFGv gbjsu3SbpHjn7+Ifoou2A78i/D9duXbKP6vsMJH6YDeIeFKScUS/KYRNm3ZfWr1D9HWK zbPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=q5eWrI2kWogtaVi3eEO9Xr1x553Cf4kdmeg90vAybrg=; b=lAwbDLvS2EsFOwV8xFs4csVRXTBZnett2iuytNI4k9oWKHd9IQQ3k2s7k0HrFY3swX vyq7YUrWcnz+Kc4WepQSFto/7qH4jmoVJvkmhMo4TQ3h/bY1YQLAzWVVEwYe+akTnANJ DVKcFfnViTyFJXMP/mQApHznvJ1ejGeLUfUYsahuCUjpjLQA2fR1UL8edi2m7UDrqJwt bZdZBIJ2FWGQACIoPoZej5n3unVSGMqfouOSF7iFVtWbASEIBvwrXEAsHMn9kRAII+tz HTdWQfOQNsDinAemC/Gry9amnCdZkGMXAxCob+TGzqE3GlBJ+EgcESxqVCCp3apOjnAA 05Uw== X-Gm-Message-State: ABuFfohZehCEL8kAjr0UgQaSI+jVjzSfEcSV2/hGo0HOJY6wTencXJe1 NiCq42gaDdD/XGeyGLdg3at+oMr8cMY= X-Google-Smtp-Source: ACcGV63IWgvu9C5Kxj/LrLkigiaG8RO93P0gf1K35G0VyjXueYq11JNFeRSBCRhLvXcOUKEd6+sPsw== X-Received: by 2002:a1c:7711:: with SMTP id t17-v6mr2033922wmi.35.1538145950883; Fri, 28 Sep 2018 07:45:50 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Fri, 28 Sep 2018 16:45:36 +0200 Message-Id: <20180928144537.5051-10-pbonzini@redhat.com> In-Reply-To: <20180928144537.5051-1-pbonzini@redhat.com> References: <20180928144537.5051-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 28 Sep 2018 14:45:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 28 Sep 2018 14:45:52 +0000 (UTC) for IP:'209.85.128.45' DOMAIN:'mail-wm1-f45.google.com' HELO:'mail-wm1-f45.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.488 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.128.45 mail-wm1-f45.google.com 209.85.128.45 mail-wm1-f45.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.42 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.25 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH v2 09/10] www: add back extra_status to series detail X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 28 Sep 2018 14:45:54 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_0 RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This will be used by the review links, which are not linked to a Result. Signed-off-by: Paolo Bonzini --- static/css/base.css | 4 ++-- www/templates/series-detail.html | 10 ++++++++-- www/views.py | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index 545aad1..7fe45e4 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -137,10 +137,10 @@ h1, h2, h3, .h1, .h2, .h3 { .status-content > .fa { color: #337ab7; } -.status-content.status-failure > .fa { +.status-content > .fa-warning { color: #CC0000; } -.status-content.status-success > .fa { +.status-content > .fa-check { color: #009900; } .status-content > div { diff --git a/www/templates/series-detail.html b/www/templates/series-detail= .html index 52b8f96..cb5d611 100644 --- a/www/templates/series-detail.html +++ b/www/templates/series-detail.html @@ -51,13 +51,13 @@ =20
{% if series.num_patches < series.total_patches %} -
+
Only {{ series.num_patches }} patches received!
{% endif %} {% for result in results %} -
+
{% if result.status =3D=3D "pending" %} {% elif result.status =3D=3D "running" %} {% elif result.status =3D=3D "failure" %} @@ -65,6 +65,12 @@
{{ result.html }}
{% endfor %} +{% for status in series.extra_status %} +
+ {% if status.icon %}{% = endif %} +
{{ status.html }}
+
+{% endfor %} =20 {% if is_head %} {% if series.get_diff_stat %} diff --git a/www/views.py b/www/views.py index 1259a8e..dd910b1 100644 --- a/www/views.py +++ b/www/views.py @@ -52,6 +52,7 @@ def prepare_message(request, project, m, detailed): }) # hook points for plugins m.has_other_revisions =3D False + m.extra_status =3D [] m.extra_ops =3D [] m.extra_links =3D [] dispatch_module_hook("prepare_message_hook", request=3Drequest, messag= e=3Dm, --=20 2.17.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel