Commit fc80dc43 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Fixing extra_li_dropdown_right not shown when not authenticated

parent a64c2984
Pipeline #13368 passed with stage
in 40 seconds
......@@ -80,10 +80,10 @@
{% include_if_exists "nav_bar.html"|localize_template "basetheme_bootstrap/nav_bar.example.html" %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% block extra_li_dropdown_right %}{% endblock %}
{%if not request.user.is_authenticated %}
<li class=""><a href="{% url 'basetheme_bootstrap:login'%}?next={{ request.path|urlencode }}">{% block sign_in_word %}{%trans "Login "%}{% endblock %}<i class="fa fa-sign-in"></i></a></li>
{%else%}
{% block extra_li_dropdown_right %}{% endblock %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
aria-expanded="false"><i class="fa fa-user-circle-o"></i> <span class="caret"></span></a>
......
......@@ -38,10 +38,10 @@
{% include_if_exists "nav_bar.html"|localize_template "basetheme_bootstrap/nav_bar.example.html" %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% block extra_li_dropdown_right %}{% endblock %}
{%if not request.user.is_authenticated %}
<li class="nav-item"><a class="nav-link" href="{% url 'basetheme_bootstrap:login'%}?next={{ request.path|urlencode }}">{% block sign_in_word %}{%trans "Login "%}{% endblock %}<i class="fa fa-sign-in"></i></a></li>
{%else%}
{% block extra_li_dropdown_right %}{% endblock %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
......
......@@ -38,10 +38,10 @@
{% include_if_exists "nav_bar.html"|localize_template "basetheme_bootstrap/nav_bar.example.html" %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% block extra_li_dropdown_right %}{% endblock %}
{%if not request.user.is_authenticated %}
<li class="nav-item"><a class="nav-link" href="{% url 'basetheme_bootstrap:login'%}?next={{ request.path|urlencode }}">{% block sign_in_word %}{%trans "Login "%}{% endblock %}<i class="fa fa-sign-in"></i></a></li>
{%else%}
{% block extra_li_dropdown_right %}{% endblock %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
......
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup(
name='django-basetheme-bootstrap',
version='0.1.3',
version='0.1.4',
description='Django Basetheme Bootstrap',
long_description=readme,
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