Merge pull request #271 from audreyr/update-navbar

Update navbar
This commit is contained in:
Daniel Greenfeld 2015-07-13 19:32:12 -07:00
commit 536fb07f02

View File

@ -34,21 +34,36 @@
<body> <body>
<div class="header navbar"> <div class="navbar navbar-default">
<div class="container"> <div class="container-fluid">
<a class="navbar-brand" href="/">{% endraw %}{{ cookiecutter.project_name }}{% raw %}</a> <!-- Brand and toggle get grouped for better mobile display -->
<ul class="nav navbar-nav"> <div class="navbar-header">
<li class="active"><a href="{% url 'home' %}">Home</a></li> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar-collapse-1" aria-expanded="false">
<li><a href="{% url 'about' %}">About</a></li> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
{% if request.user.is_authenticated %} <span class="icon-bar"></span>
<li><a href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a></li> <span class="icon-bar"></span>
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li> </button>
{% else %} <a class="navbar-brand" href="/">{% endraw %}{{ cookiecutter.project_name }}{% raw %}</a>
<li><a href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a></li> </div>
<li><a href="{% url 'account_login' %}">{% trans "Log In" %}</a></li>
{% endif %} <!-- Collect the nav links, forms, and other content for toggling -->
</ul> <div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="{% url 'home' %}">Home</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>
</div>
</div> </div>
</div> </div>