in order to autogenerate dotted path url pattern names. Updated a number of url reverses to use dotted path, and removed explicit url pattern names as needed. Changed some imports to prevent import of ietf.urls before django initialization was complete. Changed 3 cases of form classes being curried to functions; django 1.10 didn't accept that. Started converting old-style middleware classes to new-style middleware functions (incomplete). Tweaked a nomcom decorator to preserve function names and attributes, like a good decorator should. Replaced the removed django templatetag 'removetags' with our own version which uses bleach, and does sanitizing in addition to removing explicitly mentionied html tags. Rewrote the filename argument handling in a management command which had broken with the upgrade. - Legacy-Id: 12818
126 lines
6.2 KiB
HTML
126 lines
6.2 KiB
HTML
{# Copyright The IETF Trust 2015, All Rights Reserved #}{% load origin %}{% origin %}
|
|
{% load ietf_filters managed_groups wg_menu streams_menu active_groups_menu %}
|
|
|
|
{% if flavor != "top" %}
|
|
{% include "base/menu_user.html" %}
|
|
{% endif %}
|
|
|
|
<li {% if flavor == "top" %}class="dropdown"{% else %}class="nav-header"{% endif %}>
|
|
{% if flavor == "top" %}<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% endif %}
|
|
{#<span class="fa fa-users"></span>#}
|
|
Groups
|
|
{% 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>
|
|
{% wg_menu %}
|
|
{# <li class="hidden-lg hidden-nojs"><a href="#" data-toggle="modal" data-target="#navmodal">Jump to group</a></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>
|
|
<li><a href="{% url "ietf.group.views.chartering_groups" %}">Chartering groups</a></li>
|
|
<li><a href="{% url "ietf.group.views.bofs" group_type="wg" %}">BOFs</a></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 %}>Other groups</li>
|
|
<li><a href="{% url "ietf.group.views.concluded_groups" %}">Concluded groups</a></li>
|
|
<li><a href="https://www.ietf.org/list/nonwg.html">Non-WG lists</a></li>
|
|
|
|
{% if flavor == "top" %}</ul>{% endif %}
|
|
|
|
<li {% if flavor == "top" %}class="dropdown"{% else %}class="nav-header"{% endif %}>
|
|
{% if flavor == "top" %}<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% endif %}
|
|
{#<span class="fa fa-file-text"></span>#}
|
|
Documents
|
|
{% if flavor == "top" %}
|
|
</a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
{% endif %}
|
|
<li><a href="{% url "ietf.submit.views.upload_submission" %}">Draft submission</a></li>
|
|
|
|
{% if user and user.is_authenticated %}
|
|
<li><a href="{% url "ietf.community.views.view_list" user.username %}">My tracked docs</a></li>
|
|
{% else %}
|
|
<li><a rel="nofollow" href="/accounts/login/?next={{ request.get_full_path|urlencode }}">Sign in to track docs</a></li>
|
|
{% endif %}
|
|
|
|
{% if user|has_role:"WG Chair,RG Chair" %}
|
|
{% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %}
|
|
<li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>WG chair</li>
|
|
<li><a href="{% url "ietf.submit.views.approvals" %}">Approve a draft</a></li>
|
|
|
|
{% for g in user|managed_groups %}
|
|
<li><a href="{% url "ietf.group.views.group_documents" g.acronym %}">{{ g.acronym }} {{ g.type.slug }} docs</a></li>
|
|
{% endfor %}
|
|
{% for g in user|managed_groups %}
|
|
<li><a href="{% url "ietf.group.views.meetings" g.acronym %}">{{ g.acronym }} {{ g.type.slug }} meetings</a></li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if user|has_role:"Review Team Secretary" %}
|
|
{% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %}
|
|
<li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>Review Teams</li>
|
|
{% for g in user|managed_review_groups %}
|
|
<li><a href="{% url "ietf.group.views_review.review_requests" g.acronym %}">{{ g.acronym }} reviews</a></li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if user|has_role:"Area Director,Secretariat" %}
|
|
{% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %}
|
|
<li><a href="{% url "rfc_status_changes" %}">RFC status changes</a></li>
|
|
{% endif %}
|
|
{% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %}
|
|
<li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>RFC streams</li>
|
|
<li><a href="{% url "ietf.group.views_stream.stream_documents" acronym="iab" %}">IAB</a></li>
|
|
<li><a href="{% url "ietf.group.views_stream.stream_documents" acronym="irtf" %}">IRTF</a></li>
|
|
<li><a href="{% url "ietf.group.views_stream.stream_documents" acronym="ise" %}">ISE</a></li>
|
|
|
|
{% if flavor == "top" %}</ul>{% endif %}
|
|
|
|
<li {% if flavor == "top" %}class="dropdown"{% else %}class="nav-header"{% endif %}>
|
|
{% if flavor == "top" %}<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% endif %}
|
|
{#<span class="fa fa-comments"></span>#}
|
|
Meetings
|
|
{% if flavor == "top" %}
|
|
</a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
{% endif %}
|
|
|
|
<li><a href="/meeting/agenda/">Agenda</a></li>
|
|
<li><a href="/meeting/">Materials</a></li>
|
|
<li><a href="https://www.ietf.org/meeting/proceedings.html">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" %}</ul>{% endif %}
|
|
|
|
<li {% if flavor == "top" %}class="dropdown"{% else %}class="nav-header"{% endif %}>
|
|
{% if flavor == "top" %}<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% endif %}
|
|
{#<span class="fa fa-folder"></span>#}
|
|
Other
|
|
{% if flavor == "top" %}
|
|
</a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
{% endif %}
|
|
|
|
<li><a href="/ipr/">IPR disclosures</a></li>
|
|
<li><a href="/liaison/">Liaison statements</a></li>
|
|
<li><a href="/iesg/agenda/">IESG agenda</a></li>
|
|
<li><a href="{% url "ietf.stats.views.stats_index" %}">Statistics</a></li>
|
|
<li><a href="/group/edu/materials/">Tutorials</a></li>
|
|
{% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %}
|
|
<li><a href="https://tools.ietf.org/tools/ietfdb/newticket"><span class="fa fa-bug"></span> Report a bug</a></li>
|
|
{% if flavor == "top" %}</ul>{% endif %}
|
|
|
|
{% if flavor == "top" %}
|
|
{% include "base/menu_user.html" %}
|
|
{% endif %}
|