Brought back, by popular demand, a tab with the link to a group's tools pages (which was removed in release 6.25.0).

- Legacy-Id: 11559
This commit is contained in:
Henrik Levkowetz 2016-07-08 11:17:58 +00:00
parent 1ac7a8bd5e
commit 85fb050b2e
2 changed files with 3 additions and 5 deletions

View file

@ -355,6 +355,8 @@ def construct_group_menu_context(request, group, selected, group_type, others):
entries.append(("List archive", urlreverse("ietf.group.views.derived_archives", kwargs=kwargs)))
else:
entries.append((mark_safe("List archive »"), group.list_archive))
if group.has_tools_page():
entries.append((mark_safe("Tools »"), "https://tools.ietf.org/%s/%s/" % (group.type_id, group.acronym)))
# actions
actions = []

View file

@ -95,15 +95,11 @@
{% endif %}
{% with group.groupurl_set.all as urls %}
{% if urls or group.has_tools_page %}
{% if urls %}
<tr>
<td></td>
<th>More info</th>
<td>
{% if group.has_tools_page %}
<a href="https://tools.ietf.org/{{ group.type_id }}/{{ group.acronym }}/">Tools page</a>
{% if urls %}<br>{% endif %}
{% endif %}
{% for url in urls %}
<a href="{{ url.url }}">{% firstof url.name url.url %}</a>{% if not forloop.last %}<br>{% endif %}
{% endfor %}