]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
templates/submission: remove duplication when writing the Message ID
authorRoss Burton <ross.burton@arm.com>
Wed, 3 Jan 2024 17:47:47 +0000 (17:47 +0000)
committerStephen Finucane <stephenfinucane@hotmail.com>
Tue, 16 Jan 2024 18:38:49 +0000 (18:38 +0000)
The output is identical, but this removes the duplication of the Message
ID itself in the source.

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

index 6ebd8415237b838d6cd927420480b698b9e665e1..a8c0c120012dfdf5ef508c013002fefb62b578f9 100644 (file)
 <table id="patch-meta" class="patch-meta" data-submission-type={{submission|verbose_name_plural|lower}} data-submission-id={{submission.id}}>
   <tr>
     <th>Message ID</th>
+    <td>
+      {{ submission.url_msgid }}
 {% if submission.list_archive_url %}
-    <td>{{ submission.url_msgid }} (<a href="{{ submission.list_archive_url }}">mailing list archive</a>)</td>
-{% else %}
-    <td>{{ submission.url_msgid }}</td>
+      (<a href="{{ submission.list_archive_url }}">mailing list archive</a>)
 {% endif %}
+    </td>
   </tr>
 {% if submission.state %}
   <tr>