From bb6360f56c555551a6292b77e4a7a5b9995f0bd3 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Fri, 11 Aug 2023 11:22:19 -0500 Subject: [PATCH] feat: add the IAB to the group menu (#6130) --- ietf/group/views.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ietf/group/views.py b/ietf/group/views.py index 19c277c76..eb749bf9c 100644 --- a/ietf/group/views.py +++ b/ietf/group/views.py @@ -1338,6 +1338,16 @@ def group_menu_data(request): # groups_by_parent[g.parent_id].append({ 'acronym': g.acronym, 'name': escape(g.name), 'url': url }) groups_by_parent[g.parent_id].append({ 'acronym': g.acronym, 'name': escape(g.name), 'type': escape(g.type.verbose_name or g.type.name), 'url': url }) + iab = Group.objects.get(acronym="iab") + groups_by_parent[iab.pk].insert( + 0, + { + "acronym": iab.acronym, + "name": iab.name, + "type": "Top Level Group", + "url": urlreverse("ietf.group.views.group_home", kwargs={"acronym": iab.acronym}) + } + ) return JsonResponse(groups_by_parent)