From nobody Tue May 13 12:59:21 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; 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 1524485673368102.31589396610184; Mon, 23 Apr 2018 05:14:33 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C09A80F75; Mon, 23 Apr 2018 12:14:32 +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 461125C8B9; Mon, 23 Apr 2018 12:14:32 +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 2F81C1809547; Mon, 23 Apr 2018 12:14:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3NCEUo3004201 for ; Mon, 23 Apr 2018 08:14:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id 787791102E28; Mon, 23 Apr 2018 12:14:30 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-116-110.ams2.redhat.com [10.36.116.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2F0F1102E2A for ; Mon, 23 Apr 2018 12:14:29 +0000 (UTC) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 23 Apr 2018 14:14:23 +0200 Message-Id: <20180423121423.21500-5-pbonzini@redhat.com> In-Reply-To: <20180423121423.21500-1-pbonzini@redhat.com> References: <20180423121423.21500-1-pbonzini@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 4/4] www: remove extra_status from series detail view, simplify in project 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 23 Apr 2018 12:14:32 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Most of the functionality is not used anymore after conversion to Results. Signed-off-by: Paolo Bonzini --- mods/testing.py | 2 +- static/css/base.css | 2 -- www/templates/project-detail.html | 5 +---- www/templates/series-detail.html | 9 --------- www/views.py | 1 - 5 files changed, 2 insertions(+), 17 deletions(-) diff --git a/mods/testing.py b/mods/testing.py index 8dc4d0a..83b3914 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -330,7 +330,7 @@ class TestingModule(PatchewModule): if not at: return project.extra_status.append({ - "kind": "running", + "icon": "fa-refresh fa-spin", "html": "Active testers: " + ", ".join(at) }) =20 diff --git a/static/css/base.css b/static/css/base.css index 35fba6e..545aad1 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -137,11 +137,9 @@ h1, h2, h3, .h1, .h2, .h3 { .status-content > .fa { color: #337ab7; } -.status-content.status-alert > .fa, .status-content.status-failure > .fa { color: #CC0000; } -.status-content.status-good > .fa, .status-content.status-success > .fa { color: #009900; } diff --git a/www/templates/project-detail.html b/www/templates/project-deta= il.html index aaccdc0..35ee845 100644 --- a/www/templates/project-detail.html +++ b/www/templates/project-detail.html @@ -52,10 +52,7 @@ {% endfor %} {% for status in project.extra_status %}
- {% if status.icon %} - {% elif status.kind =3D=3D "running" %} - {% elif status.kind =3D=3D "alert" %} - {% elif status.kind =3D=3D "good" %} {% endif %} + {% if status.icon %}{% = endif %}
{{ status.html }}
{% endfor %} diff --git a/www/templates/series-detail.html b/www/templates/series-detail= .html index 9b2db1c..52b8f96 100644 --- a/www/templates/series-detail.html +++ b/www/templates/series-detail.html @@ -65,15 +65,6 @@
{{ result.html }}
{% endfor %} -{% for status in series.extra_status %} -
- {% if status.icon %} - {% elif status.kind =3D=3D "running" %} - {% elif status.kind =3D=3D "alert" %} - {% elif status.kind =3D=3D "good" %} {% endif %} -
{{ status.html }}
-
-{% endfor %} =20 {% if is_head %} {% if series.get_diff_stat %} diff --git a/www/views.py b/www/views.py index b0ccf48..7816024 100644 --- a/www/views.py +++ b/www/views.py @@ -52,7 +52,6 @@ def prepare_message(request, 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.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel