]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
templates/submission: add button to copy the message ID to clipboard
authorRoss Burton <ross.burton@arm.com>
Tue, 17 Oct 2023 11:41:24 +0000 (12:41 +0100)
committerStephen Finucane <stephenfinucane@hotmail.com>
Tue, 16 Jan 2024 18:38:49 +0000 (18:38 +0000)
Add an icon alongside the message ID to copy the message ID to the
clipboard, to ease integration with eg b4.

Signed-off-by: Ross Burton <ross.burton@arm.com>
patchwork/templates/patchwork/submission.html

index a8c0c120012dfdf5ef508c013002fefb62b578f9..85e7be4b400ecbb55b140280de03df92f37a8ccf 100644 (file)
@@ -28,6 +28,7 @@
 {% if submission.list_archive_url %}
       (<a href="{{ submission.list_archive_url }}">mailing list archive</a>)
 {% endif %}
+      <span class="btn-link btn-copy glyphicon glyphicon-copy" data-clipboard-text="{{ submission.url_msgid }}" title="Copy to Clipboard"></span>
     </td>
   </tr>
 {% if submission.state %}