Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E31A1E00655; Mon, 27 Feb 2017 17:25:57 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [192.55.52.120 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0704DE00935 for ; Mon, 27 Feb 2017 17:25:52 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2017 17:25:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,216,1484035200"; d="scan'208,217";a="938780748" Received: from skhalsa-mobl1.amr.corp.intel.com (HELO jalamego-MOBL2.amr.corp.intel.com) ([10.254.178.181]) by orsmga003.jf.intel.com with ESMTP; 27 Feb 2017 17:25:52 -0800 From: Jose Lamego To: yocto@yoctoproject.org Date: Mon, 27 Feb 2017 19:25:34 -0600 Message-Id: <1488245135-7709-3-git-send-email-jose.a.lamego@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488245135-7709-1-git-send-email-jose.a.lamego@linux.intel.com> References: <1488245135-7709-1-git-send-email-jose.a.lamego@linux.intel.com> Subject: [patchwork][PATCH 2/3] series.html: add patch and bundle edition forms and checkboxes X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2017 01:25:58 -0000 This change adds patch and bundle edition forms, and patch selection checkboxes. [YOCTO #10822] Signed-off-by: Jose Lamego --- patchwork/templates/patchwork/series.html | 172 ++++++++++++++++++++++-------- 1 file changed, 130 insertions(+), 42 deletions(-) diff --git a/patchwork/templates/patchwork/series.html b/patchwork/templates/patchwork/series.html index 0ba1f14..3c2cad9 100644 --- a/patchwork/templates/patchwork/series.html +++ b/patchwork/templates/patchwork/series.html @@ -2,6 +2,9 @@ {% load person %} {% load static %} +{% load patch %} +{% load listurl %} + {% block title %}{{project.name}}{% endblock %} {% block headers %} @@ -78,67 +81,152 @@ function toggle_headers(link_id, headers_id)
-{% if cover_letter %} -

Cover Letter

-
-
-      {{ cover_letter }}
-    
-
-{% else %} -

No cover letter was found for this series.

-{% endif %} + {% if cover_letter %} +

Cover Letter

+
+
+          {{ cover_letter }}
+        
+
+ {% else %} +

No cover letter was found for this series.

+ {% endif %}
-{% for revision in revisions %} -
- -

Patches download mbox

- -
- + {% for revision in revisions %} +
+

Patches download mbox

+
+
- + {% if user.is_authenticated %} + + {% endif %} - - {% for patch in revision.patch_list %} - - - - - - - {% endfor %} - + {% for patch in revision.patch_list %} + + + {% if user.is_authenticated %} + + {% endif %} + + + + + + {% endfor %}
# + + Name Submitter State
{{ patch.name|default:"[no subject]"|truncatechars:100 }}{{ patch.submitter|personify:project }}{{ patch.state }}
+ + {{ patch.name|default:"[no subject]"|truncatechars:100 }}{{ patch.submitter|personify:project }}{{ patch.state }}
+
- - {% if revision.test_results %} -

Tests

- -
-
- {% for test_result in revision.test_results %} - {% include "patchwork/test-result.html" %} - {% endfor %} -
+ {% endfor %} + +
+ {% if user.is_authenticated %} +
+ {% if patchform %} +
+

Series patches edit

+
+ {% csrf_token %} + + + + + + + + + + + + + + + + + + +
Change state: + {{ patchform.state }} + {{ patchform.state.errors }} +
Delegate to: + {{ patchform.delegate }} + {{ patchform.delegate.errors }} +
Archive: + {{ patchform.archived }} + {{ patchform.archived.errors }} +
+ +
+
+
+ {% endif %}
{% endif %} + {% if createbundleform %} +
+

Bundling

+ + + + + + {% if bundles %} + + + + + {% endif %} +
Create bundle: + {% if createbundleform.non_field_errors %} +
{{createbundleform.non_field_errors}}
+ {% endif %} +
+ {% csrf_token %} + + + {% if createbundleform.name.errors %} +
{{createbundleform.name.errors}}
+ {% endif %} + {{ createbundleform.name }} + +
+
Add to bundle: +
+ {% csrf_token %} + + + + +
+
+
+ {% endif %}
-{% endfor %}
-
- {% endblock %} -- 2.7.4