tabbycat/standings/templates/standings_menu.html
{% load debate_tags i18n %}
<div class="btn-group flex-wrap">
<a class="btn btn-outline-primary {% if standings_overview_nav %}active{% endif %}"
href="{% roundurl 'standings-index' current_round %}">
{% trans "Overview" %}
</a>
</div>
<div class="btn-group flex-wrap">
{% if tournament.break_categories_nongeneral.count > 0 %}
<div class="btn btn-outline-primary disabled">{% trans "Teams" %}</div>
{% endif %}
<a class="btn btn-outline-primary {% if standings_team_nav %}active{% endif %}"
href="{% roundurl 'standings-team' current_round %}">
{% if tournament.break_categories_nongeneral.count > 0 %}
{% trans "All" context "All [Teams]" %}
{% else %}
{% trans "Teams" %}
{% endif %}
</a>
{% for category in tournament.break_categories_nongeneral %}
<a class="btn btn-outline-primary"
href="{% roundurl 'standings-break-category' round=current_round category=category.slug %}">
{{ category.name }}
</a>
{% endfor %}
</div>
<div class="btn-group flex-wrap">
{% if tournament.speakercategory_set.all.count > 0 or pref.reply_scores_enabled %}
<div class="btn btn-outline-primary disabled">{% trans "Speakers" %}</div>
{% endif %}
<a class="btn btn-outline-primary {% if standings_speaker_nav %}active{% endif %}"
href="{% roundurl 'standings-speaker' current_round %}">
{% if pref.reply_scores_enabled %}
{% trans "Substantives" context "Substantive speeches" %}
{% elif tournament.speakercategory_set.all.count > 0 %}
{% trans "All" context "All [Speakers]" %}
{% else %}
{% trans "Speakers " %}
{% endif %}
</a>
{% for category in tournament.speakercategory_set.all %}
<a class="btn btn-outline-primary"
href="{% roundurl 'standings-speaker-category' round=current_round category=category.slug %}">
{% blocktrans trimmed with category=category.name %}
{{ category }}
{% endblocktrans %}
</a>
{% endfor %}
{% if pref.reply_scores_enabled %}
<a class="btn btn-outline-primary {% if standings_reply_nav %}active{% endif %}"
href="{% roundurl 'standings-reply' current_round %}">
{% trans "Replies" %}
</a>
{% endif %}
</div>
{% if pref.enable_motion_reuse %}
<div class="btn-group">
<a class="btn btn-outline-primary {% if motions_statistics_nav %}active{% endif %}" href="{% tournamenturl 'motions-global-statistics' %}">
{% trans "Motions" %}
</a>
<a class="btn btn-outline-primary {% if motions_statistics_nav %}active{% endif %}" href="{% tournamenturl 'motions-statistics' %}">
{% trans "By Round" %}
</a>
</div>
{% endif %}
<div class="btn-group">
{% if not pref.enable_motion_reuse %}
<a class="btn btn-outline-primary {% if motions_statistics_nav %}active{% endif %}"
href="{% tournamenturl 'motions-statistics' %}">
{% trans "Motions" %}
</a>
{% endif %}
<a class="btn btn-outline-primary {% if standings_diversity_nav %}active{% endif %}"
href="{% roundurl 'standings-diversity' current_round %}">
{% trans "Diversity" %}
</a>
</div>