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 @@ ...@@ -12,11 +12,15 @@
><i class="fa fa-user-circle-o"></i> <span class="caret"></span></a> ><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}}"> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-user{{suffix_id}}">
{%if request.user.is_staff %} {%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> <a class="dropdown-item" href="/admin/"><i class="fa fa-cogs"></i> {%trans "Admin"%}</a>
{% endblock %}
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
{%endif%} {%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: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> <a class="dropdown-item" href="{% url 'basetheme_bootstrap:logout'%}"><i class="fa fa-sign-out"></i> {%trans "Logout"%}</a>
{% endblock %}
</div> </div>
</li> </li>
{%endif%} {%endif%}
\ No newline at end of file
...@@ -7,7 +7,7 @@ readme = open('README.rst').read() ...@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup( setup(
name='django-basetheme-bootstrap', name='django-basetheme-bootstrap',
version='0.2.24', version='0.2.25',
description='Django Basetheme Bootstrap', description='Django Basetheme Bootstrap',
long_description=readme, long_description=readme,
author='Bryan Brancotte', 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