[PATCH v2 3/7] templates: Add mailing list archive link to patch detail page

Andrew Donnellan ajd at linux.ibm.com
Thu Aug 22 17:12:59 AEST 2019


Add a link to the mailing list archive link to the patch detail page.

Suggested-by: Takashi Iwai <tiwai at suse.de>
Signed-off-by: Andrew Donnellan <ajd at linux.ibm.com>
---
 patchwork/templates/patchwork/submission.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html
index b1ae5429191d..9cebbbeb89aa 100644
--- a/patchwork/templates/patchwork/submission.html
+++ b/patchwork/templates/patchwork/submission.html
@@ -34,7 +34,11 @@ function toggle_div(link_id, headers_id)
 <table class="patchmeta">
  <tr>
   <th>Message ID</th>
+  {% if submission.list_archive_url %}
+  <td>{{ submission.msgid|msgid }} (<a href="{{ submission.list_archive_url }}">mailing list archive</a>)</td>
+  {% else %}
   <td>{{ submission.msgid|msgid }}</td>
+  {% endif %}
  </tr>
 {% if submission.state %}
  <tr>
-- 
2.20.1



More information about the Patchwork mailing list