From nobody Fri Oct 25 19:23:53 2024 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 1524471822002488.6219011111468; Mon, 23 Apr 2018 01:23:42 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7ABA280462; Mon, 23 Apr 2018 08:23:40 +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 EDDD878BBF; Mon, 23 Apr 2018 08:23:39 +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 C2C8B4CA9E; Mon, 23 Apr 2018 08:23:39 +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 w3N8Mx0e014817 for ; Mon, 23 Apr 2018 04:22:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id B2CEE3ACB; Mon, 23 Apr 2018 08:22:59 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AC38B3AC8 for ; Mon, 23 Apr 2018 08:22:51 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) (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 E905180486 for ; Mon, 23 Apr 2018 08:14:20 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id s18-v6so38558511wrg.9 for ; Mon, 23 Apr 2018 01:14:20 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-189-60.clienti.tiscali.it. [78.12.189.60]) by smtp.gmail.com with ESMTPSA id x17sm6468901edx.53.2018.04.23.01.14.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 01:14:18 -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=U/BvaQmk5wMbWV7tkUBT3vGZSDuCXESmv2G8Ky8CxRQ=; b=maielhRdBbWeyKlAs5KkcKcnpZHTVTjLDxgp5P+6Va5ynqz8HLsWD0gOVsuuj2GiUQ 07+uTLo+we1AG0HG+uwN8WN7E2lVIq1zs6zShSqzlvkRwQ1Vq8zqVAONj3odbUHG8r3t 17lXMFWeBh5Oc/3+XleA0P4O6qvXdbyIB4wDt/s/EBTmNtcBhmWyPa6nEZWp+cKTe6sB tWVNNo5S+07yl+0WEwzaGRsaXYUs2l/h55ISXuuxhXi9VV1AL2q+PLaN8+unWqQVIx2s nfJ4uPPjWLm02n//vsddL5oifM+rlvp+NT54dCQ1jLUBOTXzYMnurTVhGgEjnCLqK/35 05Gw== 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=U/BvaQmk5wMbWV7tkUBT3vGZSDuCXESmv2G8Ky8CxRQ=; b=AMNUQM5Dd4uh5UbefjwK69lOaufS6FHZ0Cq7aMcH9BPNsKUSMac+tJlgYpAzUq9cIs 8uoqyec2Vzjza6TQL6AoIAHScGk73WbD5VjVh5TkQnYD08YRzPPtVLvz5+6cTjT02TIG J9Z/qJgH7Z01NVv1xK//3vfl+k7Wp19XPqb/X+3snnbfMOSPd+dpLQuHTuTImMB/Jipy XR6aBgB8POyPsPIfkXtOLT8Y/rsxg0NztddZeGgghUusUon0dpQ9C5y0N5y1cpGeMgaV paJejxJlNpGztTWcxixjKHt7pItpe7Q1eHn9HUEXs/E3195fyoQplvbWFHIOiQ2Wdp01 tYSg== X-Gm-Message-State: ALQs6tD/AZrsBi1AhViBsv4ABpIDI1wMjOxgT4TWOYtpDrpFPeeVQpxC 6l9gSN9ZQxBLP4hZz4TaaYZuBtr3 X-Google-Smtp-Source: AIpwx48dFJI3S4THv0Zg8NQQcaDru+Gt4+TFVMXanXtPKbK/h4qcqbU0FedkxXyVpz5OlwLjGPbPjw== X-Received: by 10.80.161.198 with SMTP id 64mr27764925edk.56.1524471259232; Mon, 23 Apr 2018 01:14:19 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 23 Apr 2018 10:14:15 +0200 Message-Id: <20180423081415.15099-5-pbonzini@redhat.com> In-Reply-To: <20180423081415.15099-1-pbonzini@redhat.com> References: <20180423081415.15099-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 23 Apr 2018 08:14:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 23 Apr 2018 08:14:21 +0000 (UTC) for IP:'209.85.128.193' DOMAIN:'mail-wr0-f193.google.com' HELO:'mail-wr0-f193.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.35 (DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.128.193 mail-wr0-f193.google.com 209.85.128.193 mail-wr0-f193.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 23 Apr 2018 08:23:40 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 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