diff --git a/aircox/templates/aircox/base.html b/aircox/templates/aircox/base.html index 8c3c02a..5e42e48 100644 --- a/aircox/templates/aircox/base.html +++ b/aircox/templates/aircox/base.html @@ -62,18 +62,10 @@ Usefull context: {% for item, render in items %} {{ render }} {% endfor %} - {% if user.is_staff %} - - {% translate "Admin" %} - - {% endif %} - {% if user.is_authenticated %} - - - - {% endif %} {% endblock %} + {% if user.is_authenticated %} + {% include "./dashboard/nav.html" %} + {% endif %} {% endblock %} diff --git a/aircox/templates/aircox/dashboard/nav.html b/aircox/templates/aircox/dashboard/nav.html new file mode 100644 index 0000000..82ffd71 --- /dev/null +++ b/aircox/templates/aircox/dashboard/nav.html @@ -0,0 +1,27 @@ +{% load i18n %} +