From 74609d8e04a928c68b44ec5eeaf433c52e96e5ee Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 25 Apr 2022 16:27:45 +0200 Subject: [PATCH] Add a real navbar --- src/common/templates/common/base.html | 5 +---- src/common/templates/common/navbar.html | 27 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 src/common/templates/common/navbar.html diff --git a/src/common/templates/common/base.html b/src/common/templates/common/base.html index 78c31df..9bf4f01 100644 --- a/src/common/templates/common/base.html +++ b/src/common/templates/common/base.html @@ -11,10 +11,7 @@
- {% if user.is_staff %} - Admin - Baskets - {% endif %} + {% include "common/navbar.html" %} {% block content %} {% endblock %}
diff --git a/src/common/templates/common/navbar.html b/src/common/templates/common/navbar.html new file mode 100644 index 0000000..654f20b --- /dev/null +++ b/src/common/templates/common/navbar.html @@ -0,0 +1,27 @@ +