Added a 'Mailing list discussion' link to the 'Additional URLs' section of the status page for drafts with doc.group and doc.group.list_archive set.

- Legacy-Id: 15443
This commit is contained in:
Henrik Levkowetz 2018-09-06 13:09:37 +00:00
parent ab7b572c1f
commit 6d9514f429

View file

@ -251,12 +251,15 @@
{% endif %}
</td>
<td>
{% if urls %}
{% if urls or doc.group and doc.group.list_archive %}
<table class="col-md-12 col-sm-12 col-xs-12">
<tbody>
{% for url in urls|dictsort:"desc" %}
<tr><td> - <a href="{{ url.url }}">{% firstof url.desc url.tag.name %}</a></td></tr>
{% endfor %}
{% if doc.group and doc.group.list_archive %}
<tr><td> - <a href="{{doc.group.list_archive}}?q={{doc.name}}">Mailing list discussion</a><td></tr>
{% endif %}
</tbody>
</table>
{% endif %}