Skip to content

Commit

Permalink
Revamp the menu structure some, and remove a bunch of unneeded files.
Browse files Browse the repository at this point in the history
Commit ready for merge.
 - Legacy-Id: 19485
  • Loading branch information
larseggert committed Oct 28, 2021
1 parent 962253f commit 126892d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 99 deletions.
30 changes: 0 additions & 30 deletions ietf/doc/templatetags/streams_menu.py

This file was deleted.

3 changes: 2 additions & 1 deletion ietf/doc/templatetags/wg_menu.py
Expand Up @@ -42,6 +42,7 @@
'ops':'Ops & Mgmt',
'rai':'RAI',
'iab':'IAB',
'art':'Apps & Realtime',
}

parents = Group.objects.filter(
Expand All @@ -67,4 +68,4 @@ def wg_menu():
elif p.acronym == 'ietfadminllc':
p.menu_url = "/adm/"

return render_to_string('base/menu_wg.html', { 'parents': parents })
return render_to_string('base/menu_wg.html', { 'parents': parents })
34 changes: 19 additions & 15 deletions ietf/templates/base/menu.html
@@ -1,5 +1,5 @@
{# Copyright The IETF Trust 2015-2019, All Rights Reserved #}{% load origin %}{% origin %}
{% load ietf_filters managed_groups wg_menu streams_menu active_groups_menu group_filters %}
{% load ietf_filters managed_groups wg_menu active_groups_menu group_filters %}

{% if flavor != "top" %}
{% include "base/menu_user.html" %}
Expand All @@ -12,16 +12,11 @@
{% if flavor == "top" %}
</a>
<ul class="dropdown-menu" role="menu">
{% endif %}

<li><a href="{% url "ietf.group.views.active_groups" group_type="wg" %}">Active WGs</a></li>
<li><a href="{% url "ietf.group.views.active_groups" group_type="rg" %}">Active RGs</a></li>
<li class="dropdown-submenu group-menu"><a href="{% url "ietf.group.views.active_groups" %}">Other</a>{% active_groups_menu %} </li>

{% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %}
<li {%if flavor == "top" %}class="dropdown-header visible-lg-block"{% else %}class="nav-header hidden-nojs"{% endif %}>By area/parent</li>
<li class="dropdown-header visible-lg-block">By area/parent</li>
{% endif %}
{% wg_menu %}
{# <li class="hidden-lg hidden-nojs"><a href="#" data-toggle="modal" data-target="#navmodal">Jump to group</a></li> #}
<li class="dropdown-submenu group-menu"><a href="{% url "ietf.group.views.active_groups" %}">Other</a>{% active_groups_menu %} </li>

{% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %}
<li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>New work</li>
Expand Down Expand Up @@ -88,9 +83,6 @@
<li><a href="{% url "ietf.nomcom.views.private_index" g.nomcom_set.first.year %}">{{ g.acronym|capfirst }}</a></li>
{% endfor %}
{% endif %}

{% else %}
<li><a rel="nofollow" href="/accounts/login/?next={{ request.get_full_path|urlencode }}">Sign in to track docs</a></li>
{% endif %}


Expand All @@ -112,16 +104,28 @@
<ul class="dropdown-menu" role="menu">
{% endif %}


{% if flavor == "top" %}
<li class="dropdown-header visible-lg-block">Next meeting</li>
{% endif %}
<li><a href="/meeting/agenda/">Agenda</a></li>
<li><a href="/meeting/materials/">Materials</a></li>
<li><a href="/meeting/floor-plan/">Floor plan</a></li>
<li><a href="https://www.ietf.org/how/meetings/register/">Registration</a></li>
<li><a href="{% url 'ietf.meeting.views.important_dates' %}">Important dates</a></li>
<li><a href="https://www.ietf.org/how/meetings/past/">Proceedings</a></li>
<li><a href="/meeting/upcoming">Upcoming</a></li>
<li><a href="/meeting/past">Past</a></li>
<li><a href="/secr/sreq/">Request a session</a></li>
<li><a href="/meeting/requests">Session requests</a></li>
{% if flavor == "top" %}
<li class="divider hidden-xs"></li>
<li class="dropdown-header visible-lg-block">Upcoming meetings</li>
{% endif %}
<li><a href="/meeting/upcoming">Upcoming meetings</a></li>
{% if flavor == "top" %}
<li class="divider hidden-xs"></li>
<li class="dropdown-header visible-lg-block">Past meetings</li>
{% endif %}
<li><a href="/meeting/past">Past meetings</a></li>
<li><a href="https://www.ietf.org/how/meetings/past/">Meeting proceedings</a></li>
{% if flavor == "top" %}</ul>{% endif %}
</li>

Expand Down
10 changes: 8 additions & 2 deletions ietf/templates/base/menu_wg.html
@@ -1,6 +1,12 @@
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
{% for p in parents %}
<li class="hidden-nojs dropdown-submenu group-menu group-parent-{{ p.id }}">
<a href="{{ p.menu_url }}">{{ p.short_name }}</a>
<a href="{{ p.menu_url }}">
{% if p.short_name == "IETF Administration LLC" %}
IETF LLC
{% else %}
{{ p.short_name }}
{% endif %}
</a>
</li>
{% endfor %}
{% endfor %}
43 changes: 0 additions & 43 deletions ietf/templates/base/menu_wg_modal.html

This file was deleted.

8 changes: 0 additions & 8 deletions ietf/templates/base/streams_menu.html

This file was deleted.

0 comments on commit 126892d

Please sign in to comment.