From 562b4c66f292bb4a37804a9a9b53e3f85305cafe Mon Sep 17 00:00:00 2001 From: Daniel Axtens Date: Mon, 27 Mar 2017 16:42:50 +1100 Subject: [PATCH] Put download buttons at the top as well Suggested by a few people. Signed-off-by: Daniel Axtens Reviewed-by: Stephen Finucane --- .../templates/patchwork/download_buttons.html | 24 +++++++++++++++ patchwork/templates/patchwork/submission.html | 29 +++---------------- 2 files changed, 28 insertions(+), 25 deletions(-) create mode 100644 patchwork/templates/patchwork/download_buttons.html 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" %}

-- 2.47.3