From 85fb050b2e57989b9caf85e2dba05040e4ca33a1 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 8 Jul 2016 11:17:58 +0000 Subject: [PATCH] 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 --- ietf/group/views.py | 2 ++ ietf/templates/group/group_about.html | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ietf/group/views.py b/ietf/group/views.py index 40936a67f..0394839e0 100644 --- a/ietf/group/views.py +++ b/ietf/group/views.py @@ -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 = [] diff --git a/ietf/templates/group/group_about.html b/ietf/templates/group/group_about.html index 18f04f664..f1d985814 100644 --- a/ietf/templates/group/group_about.html +++ b/ietf/templates/group/group_about.html @@ -95,15 +95,11 @@ {% endif %} {% with group.groupurl_set.all as urls %} - {% if urls or group.has_tools_page %} + {% if urls %} More info - {% if group.has_tools_page %} - Tools page - {% if urls %}
{% endif %} - {% endif %} {% for url in urls %} {% firstof url.name url.url %}{% if not forloop.last %}
{% endif %} {% endfor %}