Reorder navbar links

This commit is contained in:
Gabriel Augendre 2022-04-25 17:36:20 +02:00
parent 4cd55984aa
commit 53620a279a

View file

@ -6,16 +6,16 @@
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
{% if perms.purchase.view_basket %}
<li class="nav-item">
<a href="{% url "purchase:list" %}" class="nav-link">Baskets</a>
</li>
{% endif %}
{% if perms.purchase.add_basket %}
<li class="nav-item">
<a href="{% url "purchase:new" %}" class="nav-link">New basket</a>
</li>
{% endif %}
{% if perms.purchase.view_basket %}
<li class="nav-item">
<a href="{% url "purchase:list" %}" class="nav-link">Baskets</a>
</li>
{% endif %}
{% if user.is_staff %}
<li class="nav-item">
<a class="nav-link" href="{% url "admin:index" %}">Admin</a>