File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1515 < div class ="d-block text-secondary fs-5 "> {{ notification.event }} {{ notification.created|timesince }} {% trans "ago" %}</ div >
1616 </ div >
1717 < div class ="col-auto ">
18- < a href ="# " hx-get ="{% url 'extras:notification_dismiss' pk=notification.pk %} " hx-target ="closest .notifications " class ="list-group-item-actions text-secondary " title ="{% trans "Dismiss " %}">
18+ < a href ="# " hx-get ="{% url 'extras:notification_dismiss' pk=notification.pk %} " hx-target ="closest .notifications " class ="list-group-item-actions text-red " title ="{% trans "Dismiss " %}">
1919 < i class ="mdi mdi-close "> </ i >
2020 </ a >
2121 </ div >
2222 </ div >
2323 </ div >
2424 {% empty %}
25- < div class ="dropdown-item text-muted ">
25+ < div class ="dropdown-item disabled ">
2626 {% trans "No unread notifications" %}
2727 </ div >
2828 {% endfor %}
Original file line number Diff line number Diff line change 11{% load i18n %}
22
33< div class ="d-flex ms-2 ">
4- < button class ="btn color-mode-toggle hide-theme-dark " title ="{% trans "Enable dark mode " %}" data-bs-toggle="tooltip " data-bs-placement ="bottom ">
4+ < button class ="nav-link color-mode-toggle hide-theme-dark fs-2 p-0 text-secondary " title ="{% trans "Enable dark mode " %}" data-bs-toggle="tooltip " data-bs-placement ="bottom ">
55 < i class ="mdi mdi-lightbulb "> </ i >
66 </ button >
7- < button class ="btn color-mode-toggle hide-theme-light " title ="{% trans "Enable light mode " %}" data-bs-toggle="tooltip " data-bs-placement ="bottom ">
7+ < button class ="nav-link color-mode-toggle hide-theme-light fs-2 p-0 text-secondary " title ="{% trans "Enable light mode " %}" data-bs-toggle="tooltip " data-bs-placement ="bottom ">
88 < i class ="mdi mdi-lightbulb-on "> </ i >
99 </ button >
1010</ div >
Original file line number Diff line number Diff line change 11{% if notifications %}
22 < span class ="text-primary " id ="notifications-alert " hx-swap-oob ="true ">
3- < i class ="mdi mdi-bell-badge "> </ i >
3+ < i class ="mdi mdi-bell-ring "> </ i >
4+ < span class ="badge bg-red "> </ span >
45 </ span >
56{% else %}
67 < span class ="text-muted " id ="notifications-alert " hx-swap-oob ="true ">
Original file line number Diff line number Diff line change 1212 {# Notifications #}
1313 {% with notifications=request.user.notifications.unread.exists %}
1414 < div class ="dropdown ">
15- < a href =" # " class ="nav-link px-1 " data-bs-toggle ="dropdown " hx-get ="{% url 'extras:notifications' %} " hx-target ="next .notifications " aria-label ="{% trans "Notifications " %}">
15+ < button class ="nav-link fs-2 p-0 " data-bs-toggle ="dropdown " hx-get ="{% url 'extras:notifications' %} " hx-target ="next .notifications " aria-label ="{% trans "Notifications " %}">
1616 {% include 'inc/notification_bell.html' %}
17- </ a >
17+ </ button >
1818 < div class ="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications "> </ div >
1919 </ div >
2020 {% endwith %}
You can’t perform that action at this time.
0 commit comments