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 1535054468803494.9903229321711; Thu, 23 Aug 2018 13:01:08 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9B7C63082A41; Thu, 23 Aug 2018 20:01:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7559C1062241; Thu, 23 Aug 2018 20:01:07 +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 5DEC118005CD; Thu, 23 Aug 2018 20:01:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w7NK1637027537 for ; Thu, 23 Aug 2018 16:01:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id 99E077DFE8; Thu, 23 Aug 2018 20:01:06 +0000 (UTC) Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 91C067DFE7 for ; Thu, 23 Aug 2018 20:01:04 +0000 (UTC) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 04F7E308338E for ; Thu, 23 Aug 2018 20:01:03 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id m27-v6so5611385wrf.3 for ; Thu, 23 Aug 2018 13:01:02 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-184-244.clienti.tiscali.it. [78.12.184.244]) by smtp.gmail.com with ESMTPSA id v5-v6sm4330793wru.60.2018.08.23.13.01.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Aug 2018 13:01:00 -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=GtEDY2o8/riHe2WvmLmFpLJFvSvSsHnMa6OIw2uKum/qmvr8SG57Ly6jxaibgAVvhH jn9QYiK4tqYEeASTPM6YetwLbUnNhipQWU/5aJ7XUqlbsgz7ojgVS3aw3/lLKYhEpVgA 1AY5nhzb4YcwZltyGwkzHwpORJm+15TPLu30abItHwDXOMXtV2zgBGlNEY+cbiLddqAV sxBeHsIeq24WPvS0L8FNQsq5swII13Ky+NDepk97O/jp1WdFCbScH/y9t25MVE7Wnchq mrg3WB53GIx+U0ZkFT8XBdFs5ecRqiQH6o9nRlwWFAO5FXv69BpbUNDfFY7gHwD5/XKW J5BA== 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=ROb0eGPY5ec9z133jzv92UERw/RYPfAmkvl95O4DJpgbgwd0Ou840D82G7j//uj9Bg bSPqO96SKiEFfJ3eEErbmxJDEHz14gl18lYhpKm+K0TwTLMffbskYyR2o290zweqfQlo wTCHVbE0B4d25wsyI9Pd0cCbCheRwbUzwQ32Donufws6dGksrzGciUkn8esRH3u79zas KnGf6LHtQ7wLoOR1UtiXTpSZiAwpg9W4aXNnOcroiQIu1yfEglwiCIzq0oLAwFsLI5ZM OMPKci2M7ni0F+fdCjyUXpakrKRUo0FxdZc8YtyUZhZ6myjBhp8LyEnO/vyvlHaGZzXX NtFw== X-Gm-Message-State: APzg51CguI8P/vXnUs2Rg6ZBC8qpCsTdrRD+C+aIsfxyTswh4kgQof6T Fm3f+5x9u3MnHWs9ZgwGAettf/rk X-Google-Smtp-Source: ANB0VdYN5MxqByjummvO66xLQPwNRMZ2UMBwbwnx+kEm+8qW54ahAUnyJAK91yAqYbSxpIS+q3+z1w== X-Received: by 2002:adf:f984:: with SMTP id f4-v6mr13000126wrr.105.1535054461478; Thu, 23 Aug 2018 13:01:01 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Thu, 23 Aug 2018 22:00:54 +0200 Message-Id: <20180823200055.2389-6-pbonzini@redhat.com> In-Reply-To: <20180823200055.2389-1-pbonzini@redhat.com> References: <20180823200055.2389-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 23 Aug 2018 20:01:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 23 Aug 2018 20:01:03 +0000 (UTC) for IP:'209.85.221.49' DOMAIN:'mail-wr1-f49.google.com' HELO:'mail-wr1-f49.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.241 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS) 209.85.221.49 mail-wr1-f49.google.com 209.85.221.49 mail-wr1-f49.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.44 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 5/6] 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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Thu, 23 Aug 2018 20:01:07 +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