Skip to content

Commit 60c4931

Browse files
committed
bring back nav item separators
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 2c5333e commit 60c4931

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

dje/templates/navbar/navbar_header_right_menu.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
{% load has_notification from notifications_tags %}
33

44
{% block right-nav %}
5+
<li class="nav-item">
6+
<hr class="d-md-none my-2 text-white-50">
7+
</li>
58
{% include 'navbar/navbar_theme_toogle.html' %}
69
{% if not user.is_authenticated and register_url %}
10+
<li class="nav-item">
11+
<hr class="d-md-none my-2 text-white-50">
12+
</li>
713
<li class="nav-item">
814
<a class="nav-link" href="{{ register_url }}"><i class="fas fa-user-plus"></i> {% trans 'Sign Up' %}</a>
915
</li>
@@ -13,6 +19,9 @@
1319
<a class="nav-link" href="{% url 'login' %}"><i class="fas fa-sign-in-alt"></i> {% trans 'Sign in' %}</a>
1420
</li>
1521
{% else %}
22+
<li class="nav-item">
23+
<hr class="d-md-none my-2 text-white-50">
24+
</li>
1625
<li class="nav-item">
1726
{% if user|has_notification %}
1827
<a class="nav-link px-md-3 position-relative" href="{% url 'notifications:unread' %}" title="Unread notifications" data-bs-toggle="tooltip" aria-label="Unread notifications">
@@ -27,6 +36,9 @@
2736
</a>
2837
{% endif %}
2938
</li>
39+
<li class="nav-item">
40+
<hr class="d-md-none my-2 text-white-50">
41+
</li>
3042
<li class="nav-item dropdown">
3143
<button class="btn nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3244
{% firstof user.first_name|truncatechars:10 user.username|truncatechars:10 %}&nbsp;({{ user.dataspace|truncatechars:8 }})

0 commit comments

Comments
 (0)