mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 18:14:01 +03:00
commit
536fb07f02
|
@ -34,13 +34,27 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="header navbar">
|
<div class="navbar navbar-default">
|
||||||
<div class="container">
|
<div class="container-fluid">
|
||||||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar-collapse-1" aria-expanded="false">
|
||||||
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
<a class="navbar-brand" href="/">{% endraw %}{{ cookiecutter.project_name }}{% raw %}</a>
|
<a class="navbar-brand" href="/">{% endraw %}{{ cookiecutter.project_name }}{% raw %}</a>
|
||||||
<ul class="nav navbar-nav">
|
</div>
|
||||||
<li class="active"><a href="{% url 'home' %}">Home</a></li>
|
|
||||||
<li><a href="{% url 'about' %}">About</a></li>
|
|
||||||
|
|
||||||
|
<!-- 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><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 %}
|
{% if request.user.is_authenticated %}
|
||||||
<li><a href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a></li>
|
<li><a href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a></li>
|
||||||
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
|
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
|
||||||
|
@ -51,6 +65,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user