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:
parent
1ac7a8bd5e
commit
85fb050b2e
|
@ -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 = []
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue