mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-04-04 08:54:26 +03:00
Close navbar-collapse div.
This commit is contained in:
parent
7a147e72e2
commit
35112546c4
|
@ -49,20 +49,21 @@
|
|||
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="{% url 'home' %}">Home <span class="sr-only">(current) </span></a></li>
|
||||
<li><a href="{% url 'about' %}">About</a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="{% url 'home' %}">Home <span class="sr-only">(current) </span></a></li>
|
||||
<li><a href="{% url 'about' %}">About</a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{% if request.user.is_authenticated %}
|
||||
<li><a href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a></li>
|
||||
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a></li>
|
||||
<li><a href="{% url 'account_login' %}">{% trans "Log In" %}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{% if request.user.is_authenticated %}
|
||||
<li><a href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a></li>
|
||||
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a></li>
|
||||
<li><a href="{% url 'account_login' %}">{% trans "Log In" %}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user