diff options
author | Magnus Granberg <zorry@gentoo.org> | 2017-01-06 18:38:55 +0100 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2017-01-06 18:38:55 +0100 |
commit | 8075fca3b427cdedb19c50bf8c8ede5476aaf7ad (patch) | |
tree | 6065bda87ed2ee727cb79f614e57714b0a0f2aa2 /python/templates/includes/layout/header.html | |
parent | Update for django 1.10 and fix links for css and js (diff) | |
download | tinderbox-cluster-www-8075fca3b427cdedb19c50bf8c8ede5476aaf7ad.tar.gz tinderbox-cluster-www-8075fca3b427cdedb19c50bf8c8ede5476aaf7ad.tar.bz2 tinderbox-cluster-www-8075fca3b427cdedb19c50bf8c8ede5476aaf7ad.zip |
Redone the layout
Diffstat (limited to 'python/templates/includes/layout/header.html')
-rw-r--r-- | python/templates/includes/layout/header.html | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/python/templates/includes/layout/header.html b/python/templates/includes/layout/header.html index 585ea59..4968f1f 100644 --- a/python/templates/includes/layout/header.html +++ b/python/templates/includes/layout/header.html @@ -32,6 +32,7 @@ <img src="https://assets.gentoo.org/tyrian/site-logo.png" alt="Gentoo Linux Logo"> </object> </a> + <span class="site-label">Tinderbox-cluster</span> </div> </div> </div> @@ -51,18 +52,27 @@ <ul class="nav navbar-nav"> {% include "includes/navigation/primary" %} </ul> - <ul class="nav navbar-nav navbar-right"> - {% for node in pages %} - {% if node.nav1 == 'donate' %} - <li class="active"><a href="{{ node.url }}"><span class="fa fa-heart"></span>{{ node.title }}</a></li> - {% endif %} - {% endfor %} - </ul> + <div class="btn-group btn-group-sm"> + <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> + User <span class="caret"></span> + </button> + <ul class="dropdown-menu"> + {% if user.is_authenticated %} + <li><a href="/user/password_change/"><span class="fa fa-file-text fa-fw"></span> Change password</a></li> + <li class="divider"></li> + <li><a href="/user/bugzillalogin/"><span class="fa fa-file-text fa-fw"></span> Bugzilla Login</a></li> + <li class="divider"></li> + <li><a href="/user/logout/"><span class="fa fa-home fa-fw"></span> Log out</a></li> + {% else %} + <li><a href="/user/login/"><span class="fa fa-tasks fa-fw"></span> Log in</a></li> + {% endif %} + </ul> + </div> </div> </div> </div> </nav> - {% if subpage %} + {% if subpages %} <nav class="navbar navbar-grey navbar-stick" role="navigation"> <div class="container"> <div class="row"> |