UI: 2024 Hero component options #103971

Merged
Márton Lente merged 66 commits from ui/2024-hero-options into main 2024-09-24 13:00:31 +02:00
Showing only changes of commit bb335bf6dd - Show all commits

View File

@ -8,54 +8,73 @@ li.nav-item
a.nav-link(href="{{ album.get_absolute_url }}") Latest Photos
| {% elif edition.albums.count %}
li.nav-item
a.nav-link(href="{% url 'albums' edition_path=edition.path %}",
a.nav-link(
href="{% url 'albums' edition_path=edition.path %}",
class="{% if 'photos' in request.path %}is-active{% endif %}") Photos
| {% endif %}
| {% endwith %}
| {% if edition.flatpage_location_published %}
li.nav-item
a.nav-link(href="{% url 'location' edition_path=edition.path %}") Location
a.nav-link(
href="{% url 'location' edition_path=edition.path %}",
class="{% if 'location' in request.path %}is-active{% endif %}")
| Location
| {% endif %}
| {% if edition.flatpage_call_for_sponsors_published %}
li.nav-item
a.nav-link(href="{% url 'call_for_sponsorship' edition_path=edition.path %}") Call for Sponsorship
a.nav-link(
href="{% url 'call_for_sponsorship' edition_path=edition.path %}",
class="{% if 'sponsorship' in request.path %}is-active{% endif %}")
| Call for Sponsorship
| {% endif %}
| {% if edition.flatpage_call_for_participation_published %}
li.nav-item
a.nav-link(href="{% url 'call_for_participation' edition_path=edition.path %}") Call for Participation
a.nav-link(
href="{% url 'call_for_participation' edition_path=edition.path %}",
class="{% if 'participation' in request.path %}is-active{% endif %}")
| Call for Participation
| {% endif %}
| {% if edition.schedule_status == 'proposed' or edition.schedule_status == 'final' %}
li.nav-item
a.nav-link(href="{% url 'schedule' edition_path=edition.path %}",
class="{% if 'schedule' in request.path %}is-active{% endif %}") Schedule
a.nav-link(
href="{% url 'schedule' edition_path=edition.path %}",
class="{% if 'schedule' in request.path %}is-active{% endif %}")
| Schedule
| {% endif %}
| {% if edition.speakers_viewable %}
li.nav-item
a.nav-link(href="{% url 'speakers' edition_path=edition.path %}",
class="{% if 'speakers' in request.path %}is-active{% endif %}") Speakers
a.nav-link(
href="{% url 'speakers' edition_path=edition.path %}",
class="{% if 'speakers' in request.path %}is-active{% endif %}")
| Speakers
| {% endif %}
| {% if edition.attendees_viewable and user_is_attending_edition %}
li.nav-item
a.nav-link(href="{% url 'attendees' edition_path=edition.path %}",
class="{% if 'attendees' in request.path %}is-active{% endif %}") Attendees
a.nav-link(
href="{% url 'attendees' edition_path=edition.path %}",
class="{% if 'attendees' in request.path %}is-active{% endif %}")
| Attendees
| {% endif %}
| {% if edition.flatpage_festival_published %}
li.nav-item
a.nav-link(href="{% url 'festival' edition_path=edition.path %}",
class="{% if 'festival' in request.path %}is-active{% endif %}") Suzanne Awards
a.nav-link(
href="{% url 'festival' edition_path=edition.path %}",
class="{% if 'festival' in request.path %}is-active{% endif %}")
| Suzanne Awards
| {% endif %}
| {% if not edition.is_archived and edition.festival_voting_open %}
li.nav-item
a.nav-link(
href="{% url 'festival_entries_vote' edition_path=edition.path %}",
class="{% if 'festival/entries/' in request.path %}is-active{% endif %}") Vote for Suzanne Awards
class="{% if 'festival/entries/' in request.path %}is-active{% endif %}")
| Vote for Suzanne Awards
| {% endif %}
| {% endif %}