UI: Implement web-assets v2 component nav-pills #103973

Merged
Márton Lente merged 1 commits from ui/web-assets-component-nav-pills into main 2024-09-26 12:59:29 +02:00
2 changed files with 29 additions and 30 deletions

View File

@ -6,20 +6,19 @@
.col-md-3 .col-md-3
| {% block sidebar %} | {% block sidebar %}
.card .card
ul.list-group.list-group-flush div(aria-orientation="vertical", class="flex-column mb-4 nav nav-pills", role="tablist")
li.list-group-item a.nav-pills-item(class="{% if 'profile' in request.path %}active{% endif %}")(href="{% url 'profile_update' %}")
a(href="{% url 'profile_update' %}") i.i-user
| #[i.fa.fa-home] Profile | Profile
li.list-group-item a.nav-pills-item(class="{% if 'favorites' in request.path %}active{% endif %}")(href="{% url 'account_favorites_list' %}")
a(href="{% url 'account_favorites_list' %}") i.i-heart
| #[i.fa.fa-home] Favorites | Favourites
li.list-group-item a.nav-pills-item(class="{% if 'presentations' in request.path %}active{% endif %}")(href="{% url 'account_presentations_list' %}")
a(href="{% url 'account_presentations_list' %}") i.i-layers
| #[i.fa.fa-home] My Presentations | My Presentations
li.list-group-item a.nav-pills-item(class="{% if 'festival' in request.path %}active{% endif %}")(href="{% url 'account_festival_entries_list' %}")
a(href="{% url 'account_festival_entries_list' %}") i.i-tv
| #[i.fa.fa-home] My Festival Entries | My Festival Entries
| {% endblock sidebar %} | {% endblock sidebar %}
.col-md-9 .col-md-9

View File

@ -5,22 +5,22 @@
.row .row
.col-md-3.mb-3 .col-md-3.mb-3
| {% block sidebar %} | {% block sidebar %}
ul.list-group div(aria-orientation="vertical", class="flex-column mb-4 nav nav-pills", role="tablist")
li.list-group-item(class="{% if 'profile' in request.path %}is-active{% endif %}") a.nav-pills-item(class="{% if 'profile' in request.path %}active{% endif %}")(href="{% url 'profile_update' %}")
a(href="{% url 'profile_update' %}") i.i-user
| #[i.i-user] Profile | Profile
li.list-group-item(class="{% if 'favorites' in request.path %}is-active{% endif %}") a.nav-pills-item(class="{% if 'favorites' in request.path %}active{% endif %}")(href="{% url 'account_favorites_list' %}")
a(href="{% url 'account_favorites_list' %}") i.i-heart
| #[i.i-heart] Favorites | Favourites
li.list-group-item(class="{% if 'presentations' in request.path %}is-active{% endif %}") a.nav-pills-item(class="{% if 'presentations' in request.path %}active{% endif %}")(href="{% url 'account_presentations_list' %}")
a(href="{% url 'account_presentations_list' %}") i.i-layers
| #[i.i-layers] My Presentations | My Presentations
li.list-group-item(class="{% if 'festival' in request.path %}is-active{% endif %}") a.nav-pills-item(class="{% if 'festival' in request.path %}active{% endif %}")(href="{% url 'account_festival_entries_list' %}")
a(href="{% url 'account_festival_entries_list' %}") i.i-tv
| #[i.i-tv] My Festival Entries | My Festival Entries
li.list-group-item(class="{% if 'ticket' in request.path %}is-active{% endif %}") a.nav-pills-item(class="{% if 'ticket' in request.path %}active{% endif %}")(href="{% url 'tickets:list' %}")
a(href="{% url 'tickets:list' %}") i.i-ticket
| #[i.i-ticket] Tickets | Tickets
| {% endblock sidebar %} | {% endblock sidebar %}
.col-md-9 .col-md-9