From 1ee9ab2cde72738a99c44c1eece3e6874e5356e1 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 24 May 2017 11:32:49 +0100 Subject: [PATCH] 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 --- patchwork/templates/patchwork/download_buttons.html | 6 ++++++ 1 file changed, 6 insertions(+) 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 %}