From: Stephen Finucane Date: Wed, 24 May 2017 10:32:49 +0000 (+0100) Subject: views: Display correct download links for covers X-Git-Tag: v2.0.0-rc3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ee9ab2cde72738a99c44c1eece3e6874e5356e1;p=thirdparty%2Fpatchwork.git views: Display correct download links for covers This means using the correct link for the cover mbox and not displaying one for the non-existent diff. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/download_buttons.html b/patchwork/templates/patchwork/download_buttons.html index df392b36..1322eed2 100644 --- a/patchwork/templates/patchwork/download_buttons.html +++ b/patchwork/templates/patchwork/download_buttons.html @@ -1,10 +1,16 @@
+ {% if submission.diff %} diff mbox + {% else %} + mbox + {% endif %} {% if submission.series.all|length == 1 %}