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>
<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"
--- /dev/null
+---
+other:
+ - |
+ The patch ID on the patch detail page can now be clicked to copy it. This
+ is similar to what we already do on the patch list page.