From patchwork Wed Sep 1 16:57:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Finucane X-Patchwork-Id: 1523344 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" header.d=that.guru header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=IC0DjtvK; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H09hn0KbWz9sW8 for ; Thu, 2 Sep 2021 03:16:57 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4H09hm63bMz301j for ; Thu, 2 Sep 2021 03:16:56 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" header.d=that.guru header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=IC0DjtvK; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=that.guru (client-ip=136.175.108.219; helo=mail-108-mta219.mxroute.com; envelope-from=stephen@that.guru; receiver=) Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" header.d=that.guru header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=IC0DjtvK; dkim-atps=neutral Received: from mail-108-mta219.mxroute.com (mail-108-mta219.mxroute.com [136.175.108.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4H09hT3TpCz2ywY for ; Thu, 2 Sep 2021 03:16:40 +1000 (AEST) Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta219.mxroute.com (ZoneMTA) with ESMTPSA id 17ba25cc9b200074ba.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Wed, 01 Sep 2021 17:16:35 +0000 X-Zone-Loop: 0b82d561b8159d3c166aebcff9f8a848affd19d2304e X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru; s=x; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6Jnjorx51awE0b5bwbHvCM29jCvBHQZ9sMJJW4H3eCk=; b=IC0DjtvKhyMQHNmlCLHReuXRSa WEdTSwqFLqODsNDhboeummlg4/Kvw/bUuK5jYEsPT38LGBx4RuWr8lF0CUTIkoZFXNqdxW9q1F2FJ nk1/9ZBvngQnu8kiFhBsRgb6gHFygdvwLcdiQ6od3EF9ypK+kc7h+RgZP/y0e0uoN3ikbCY+P+DJ7 Y12DMBhxjQERiTvW1Yzu6hWLPwneVH+9vVRGXVNGA/zkoVS3GeeOFtCHV5jq6zeNI9f8ZhzDri2/u smeZY5Cugr24fvLF1FMgdDIGuiyr1dWjWLFPC/ParvOSbiLc/BdNOwQtHmHW84JgbpJ9BRf1HzO4+ hOwuhbdw==; From: Stephen Finucane To: patchwork@lists.ozlabs.org Subject: [RFC PATCH v2 14/19] templates: Convert projects view Date: Wed, 1 Sep 2021 17:57:51 +0100 Message-Id: <20210901165756.181192-15-stephen@that.guru> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210901165756.181192-1-stephen@that.guru> References: <20210901165756.181192-1-stephen@that.guru> MIME-Version: 1.0 X-AuthUser: stephen@that.guru X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Signed-off-by: Stephen Finucane --- patchwork/templates/patchwork/projects.html | 83 +++++++++++++-------- 1 file changed, 50 insertions(+), 33 deletions(-) diff --git patchwork/templates/patchwork/projects.html patchwork/templates/patchwork/projects.html index 16b1bc5d..d645fdbc 100644 --- patchwork/templates/patchwork/projects.html +++ patchwork/templates/patchwork/projects.html @@ -1,38 +1,55 @@ -{% extends "base.html" %} +{% extends "base2.html" %} + +{% block title %}Projects{% endblock %} -{% block title %}Project List{% endblock %} {% block body %} -
-{% if projects %} -{% for p in projects %} -{% cycle '
' '' '' %} -
-
-
-

{{ p.name }}

-

- - - View patches - +

+

+ Projects +

+ +
+{% for project in projects %} +
+
+
+

{{ project.name }}

+
+
+ ({{ project.listemail }}) +
+ + +
+
+{% empty %} +
+
+
+ + -

-{% if p.web_url %} -

{{ p.web_url }}

-{% endif %} -{% if p.webscm_url %} -

{{ p.webscm_url }}

-{% endif %} -
-
-
-{% if forloop.last %} -
-{% else %} -{% cycle '' '' '
' %} -{% endif %} +
+
+

Patchwork doesn't have any projects to display.

+
+
+
{% endfor %} -{% else %} -

Patchwork doesn't have any projects to display!

-{% endif %} + + {% endblock %}