Skip to content

Commit 1ca8977

Browse files
committed
Since the list-archive tab on group pages can sometimes be a tab and sometimes a link out, positioning it between the always-tab and always link-out entries seems reasonable.
- Legacy-Id: 10869
1 parent 58afa53 commit 1ca8977

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

ietf/group/info.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,16 +340,18 @@ def construct_group_menu_context(request, group, selected, group_type, others):
340340
entries.append(("Meetings", urlreverse("ietf.group.info.meetings", kwargs=kwargs)))
341341
entries.append(("Email expansions", urlreverse("ietf.group.info.email", kwargs=kwargs)))
342342
entries.append(("History", urlreverse("ietf.group.info.history", kwargs=kwargs)))
343-
if group.features.has_documents:
344-
kwargs["output_type"] = "svg"
345-
entries.append((mark_safe("Dependency graph »"), urlreverse("ietf.group.info.dependencies", kwargs=kwargs)))
346-
del kwargs["output_type"]
347343

348344
if group.list_archive.startswith("http:") or group.list_archive.startswith("https:") or group.list_archive.startswith("ftp:"):
349345
if 'mailarchive.ietf.org' in group.list_archive:
350346
entries.append(("List archive", urlreverse("ietf.group.info.derived_archives", kwargs=kwargs)))
351347
else:
352348
entries.append((mark_safe("List archive »"), group.list_archive))
349+
350+
if group.features.has_documents:
351+
kwargs["output_type"] = "svg"
352+
entries.append((mark_safe("Dependency graph »"), urlreverse("ietf.group.info.dependencies", kwargs=kwargs)))
353+
del kwargs["output_type"]
354+
353355
if group.has_tools_page():
354356
entries.append((mark_safe("Tools page »"), "https://tools.ietf.org/%s/%s/" % (group.type_id, group.acronym)))
355357

0 commit comments

Comments
 (0)