From: Andrew Donnellan Date: Wed, 20 Dec 2017 06:34:24 +0000 (+1100) Subject: templates: Add click-to-copy patch ID ("mpe mode") to patch detail page X-Git-Tag: v2.1.0-rc1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79934782a4ca00f193fe2a7340aba6281bed359d;p=thirdparty%2Fpatchwork.git templates: Add click-to-copy patch ID ("mpe mode") to patch detail page Similar to what we already do on the patch list page, display the patch ID on the patch detail page and make it a click-to-copy button. Closes: #115 ("Show copy-able patch ID ("mpe mode") on patch detail page") Signed-off-by: Andrew Donnellan Signed-off-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/download_buttons.html b/patchwork/templates/patchwork/download_buttons.html index 1322eed2..4809db54 100644 --- a/patchwork/templates/patchwork/download_buttons.html +++ b/patchwork/templates/patchwork/download_buttons.html @@ -1,4 +1,8 @@
+ {% if submission.diff %}