-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathprogram_menu.html
More file actions
13 lines (13 loc) · 1.39 KB
/
program_menu.html
File metadata and controls
13 lines (13 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
{% if camp.show_schedule %}
<a href="{% url 'program:schedule_index' camp_slug=camp.slug %}" class="bornhack-program-menu btn {% if url_name == "schedule_index" or urlyear %}btn-primary{% else %}btn-outline-secondary{% endif %}">Schedule</a>
{% endif %}
<a href="{% url 'program:event_index' camp_slug=camp.slug %}" class="bornhack-program-menu btn {% if url_name == "event_index" %}btn-primary{% else %}btn-outline-secondary{% endif %}">Events</a>
<a href="{% url 'program:speaker_index' camp_slug=camp.slug %}" class="bornhack-program-menu btn {% if url_name == "speaker_index" %}btn-primary{% else %}btn-outline-secondary{% endif %}">Speakers</a>
<a href="{% url 'program:call_for_participation' camp_slug=camp.slug %}" class="bornhack-program-menu btn {% if url_name == "call_for_participation" %}btn-primary{% else %}btn-outline-secondary{% endif %}">Call for Participation</a>
{% if request.user.is_authenticated %}
{% if camp.call_for_participation_open %}
<a href="{% url 'program:proposal_list' camp_slug=camp.slug %}" class="bornhack-program-menu btn {% if url_name in proposal_urls %}btn-primary{% else %}btn-outline-secondary{% endif %}">Submit Proposal</a>
{% else %}
<a href="{% url 'program:proposal_list' camp_slug=camp.slug %}" class="bornhack-program-menu btn {% if url_name in proposal_urls %}btn-primary{% else %}btn-outline-secondary{% endif %}">View Proposals</a>
{% endif %}
{% endif %}