From f9017207fad1444122b269b5ba617b96459c0171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Lente?= Date: Thu, 26 Sep 2024 12:55:30 +0200 Subject: [PATCH] UI: Implement web-assets v2 component nav-pills Implement Web Assets v2 nav-pills component as sidebar nav, as it was introduced in v2.0.0-alpha.40. --- .../2020la/la_base_with_sidebar.pug | 27 ++++++++-------- .../conference_main/base_with_sidebar.pug | 32 +++++++++---------- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/conference_main/templates/conference_main/2020la/la_base_with_sidebar.pug b/conference_main/templates/conference_main/2020la/la_base_with_sidebar.pug index 3ba01d0..4878221 100644 --- a/conference_main/templates/conference_main/2020la/la_base_with_sidebar.pug +++ b/conference_main/templates/conference_main/2020la/la_base_with_sidebar.pug @@ -6,20 +6,19 @@ .col-md-3 | {% block sidebar %} .card - ul.list-group.list-group-flush - li.list-group-item - a(href="{% url 'profile_update' %}") - | #[i.fa.fa-home] Profile - li.list-group-item - a(href="{% url 'account_favorites_list' %}") - | #[i.fa.fa-home] Favorites - li.list-group-item - a(href="{% url 'account_presentations_list' %}") - | #[i.fa.fa-home] My Presentations - li.list-group-item - a(href="{% url 'account_festival_entries_list' %}") - | #[i.fa.fa-home] My Festival Entries - + div(aria-orientation="vertical", class="flex-column mb-4 nav nav-pills", role="tablist") + a.nav-pills-item(class="{% if 'profile' in request.path %}active{% endif %}")(href="{% url 'profile_update' %}") + i.i-user + | Profile + a.nav-pills-item(class="{% if 'favorites' in request.path %}active{% endif %}")(href="{% url 'account_favorites_list' %}") + i.i-heart + | Favourites + a.nav-pills-item(class="{% if 'presentations' in request.path %}active{% endif %}")(href="{% url 'account_presentations_list' %}") + i.i-layers + | My Presentations + a.nav-pills-item(class="{% if 'festival' in request.path %}active{% endif %}")(href="{% url 'account_festival_entries_list' %}") + i.i-tv + | My Festival Entries | {% endblock sidebar %} .col-md-9 diff --git a/conference_main/templates/conference_main/base_with_sidebar.pug b/conference_main/templates/conference_main/base_with_sidebar.pug index dab33ab..f30d845 100644 --- a/conference_main/templates/conference_main/base_with_sidebar.pug +++ b/conference_main/templates/conference_main/base_with_sidebar.pug @@ -5,22 +5,22 @@ .row .col-md-3.mb-3 | {% block sidebar %} - ul.list-group - li.list-group-item(class="{% if 'profile' in request.path %}is-active{% endif %}") - a(href="{% url 'profile_update' %}") - | #[i.i-user] Profile - li.list-group-item(class="{% if 'favorites' in request.path %}is-active{% endif %}") - a(href="{% url 'account_favorites_list' %}") - | #[i.i-heart] Favorites - li.list-group-item(class="{% if 'presentations' in request.path %}is-active{% endif %}") - a(href="{% url 'account_presentations_list' %}") - | #[i.i-layers] My Presentations - li.list-group-item(class="{% if 'festival' in request.path %}is-active{% endif %}") - a(href="{% url 'account_festival_entries_list' %}") - | #[i.i-tv] My Festival Entries - li.list-group-item(class="{% if 'ticket' in request.path %}is-active{% endif %}") - a(href="{% url 'tickets:list' %}") - | #[i.i-ticket] Tickets + div(aria-orientation="vertical", class="flex-column mb-4 nav nav-pills", role="tablist") + a.nav-pills-item(class="{% if 'profile' in request.path %}active{% endif %}")(href="{% url 'profile_update' %}") + i.i-user + | Profile + a.nav-pills-item(class="{% if 'favorites' in request.path %}active{% endif %}")(href="{% url 'account_favorites_list' %}") + i.i-heart + | Favourites + a.nav-pills-item(class="{% if 'presentations' in request.path %}active{% endif %}")(href="{% url 'account_presentations_list' %}") + i.i-layers + | My Presentations + a.nav-pills-item(class="{% if 'festival' in request.path %}active{% endif %}")(href="{% url 'account_festival_entries_list' %}") + i.i-tv + | My Festival Entries + a.nav-pills-item(class="{% if 'ticket' in request.path %}active{% endif %}")(href="{% url 'tickets:list' %}") + i.i-ticket + | Tickets | {% endblock sidebar %} .col-md-9 -- 2.30.2