Commit 8c05665c authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Adding ability to add entry in login_menu

parent 842d8cf9
Pipeline #16458 passed with stage
in 26 seconds
......@@ -12,11 +12,15 @@
><i class="fa fa-user-circle-o"></i> <span class="caret"></span></a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-user{{suffix_id}}">
{%if request.user.is_staff %}
{% block login_menu_staff_dropdown_items %}
<a class="dropdown-item" href="/admin/"><i class="fa fa-cogs"></i> {%trans "Admin"%}</a>
{% endblock %}
<div class="dropdown-divider"></div>
{% block login_menu_dropdown_items %}
<a class="dropdown-item" href="{% url 'basetheme_bootstrap:account'%}"><i class="fa fa-user-circle-o"></i> {%trans "Account"%}</a>
<a class="dropdown-item" href="{% url 'basetheme_bootstrap:logout'%}"><i class="fa fa-sign-out"></i> {%trans "Logout"%}</a>
{% endblock %}
\ No newline at end of file
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
description='Django Basetheme Bootstrap',
author='Bryan Brancotte',
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment