datatracker/ietf/templates/nomcom/nomcom_public_base.html

42 lines
1.6 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load nomcom_tags %}
{% block title %}NomCom {{ year }}{% block subtitle %}{% endblock %}{% endblock %}
{% block content %}
{% origin %}
<h1>NomCom {{ year }} {% if nomcom.group.state_id == 'conclude' %}(Concluded){% endif %}</h1>
<ul class="nav nav-tabs" role="tablist">
<li {% if selected == "index" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.year_index' year %}">Home</a></li>
{% if nomcom|has_publickey %}
<li {% if selected == "nominate" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.public_nominate' year %}">Nominate</a></li>
<li {% if selected == "feedback" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.public_feedback' year %}">Provide feedback</a></li>
{% endif %}
<li {% if selected == "requirements" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.requirements' year %}">Desired expertise</a></li>
<li {% if selected == "questionnaires" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.questionnaires' year %}">Questionnaires</a></li>
</ul>
{% block nomcom_content %}
{% endblock %}
{% endblock %}
{% block js %}
<script>
// Javascript to enable link to tab
var url = document.location.toString();
if (url.match('#')) {
$('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
}
// Change hash for page-reload
$('.nav-tabs a').on('shown.bs.tab', function (e) {
window.location.hash = e.target.hash;
})
</script>
{% endblock %}