From: Daniel Axtens Date: Mon, 27 Mar 2017 05:42:50 +0000 (+1100) Subject: Put download buttons at the top as well X-Git-Tag: v2.0.0-rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=562b4c66f292bb4a37804a9a9b53e3f85305cafe;p=thirdparty%2Fpatchwork.git Put download buttons at the top as well Suggested by a few people. Signed-off-by: Daniel Axtens Reviewed-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/download_buttons.html b/patchwork/templates/patchwork/download_buttons.html new file mode 100644 index 00000000..df392b36 --- /dev/null +++ b/patchwork/templates/patchwork/download_buttons.html @@ -0,0 +1,24 @@ +
+ diff + mbox + {% if submission.series.all|length == 1 %} + series + {% elif submission.series.all|length > 1 %} + + + {% endif %} +
diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html index dd1b9e39..6ed20c34 100644 --- a/patchwork/templates/patchwork/submission.html +++ b/patchwork/templates/patchwork/submission.html @@ -27,7 +27,9 @@ function toggle_div(link_id, headers_id) } -

{{ submission.name }}

+

{{ submission.name }} +{% include "patchwork/download_buttons.html" %} +

@@ -281,30 +283,7 @@ function toggle_div(link_id, headers_id) {% if submission.diff %}

Patch -
- diff - mbox - {% if submission.series.all|length == 1 %} - series - {% elif submission.series.all|length > 1 %} - - - {% endif %} -
+ {% include "patchwork/download_buttons.html" %}