summaryrefslogtreecommitdiff
path: root/patchwork/templates
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2017-12-20 17:34:24 +1100
committerStephen Finucane <stephen@that.guru>2018-01-04 11:39:46 +0000
commit79934782a4ca00f193fe2a7340aba6281bed359d (patch)
treead9788e1a2b81e2c55f27a3b9bc332ed764c71c1 /patchwork/templates
parent0743dd0af9842c7ded4873892085a3f505062440 (diff)
downloadpatchwork-79934782a4ca00f193fe2a7340aba6281bed359d.tar
patchwork-79934782a4ca00f193fe2a7340aba6281bed359d.tar.gz
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 <andrew.donnellan@au1.ibm.com> Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork/templates')
-rw-r--r--patchwork/templates/patchwork/download_buttons.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/patchwork/templates/patchwork/download_buttons.html b/patchwork/templates/patchwork/download_buttons.html
index 1322eed..4809db5 100644
--- a/patchwork/templates/patchwork/download_buttons.html
+++ b/patchwork/templates/patchwork/download_buttons.html
@@ -1,4 +1,8 @@
<div class="btn-group pull-right">
+ <button type="button" class="btn btn-default btn-copy"
+ data-clipboard-text="{{ submission.id }}" title="Copy to Clipboard">
+ {{ submission.id }}
+ </button>
{% if submission.diff %}
<a href="{% url 'patch-raw' patch_id=submission.id %}"
class="btn btn-default" role="button" title="Download patch diff"