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

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>
{%endif%}
{% 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 %}
</div>
</li>
{%endif%}
\ No newline at end of file
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup(
name='django-basetheme-bootstrap',
version='0.2.24',
version='0.2.25',
description='Django Basetheme Bootstrap',
long_description=readme,
author='Bryan Brancotte',
......
Markdown is supported
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