Skip to content

Commit

Permalink
Merge pull request #308 from CTPUG/features/add_nav_blocks
Browse files Browse the repository at this point in the history
Add a bunch of blocks to nav.html
  • Loading branch information
drnlm committed Oct 8, 2016
2 parents 436901a + 43beca6 commit e4b1884
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wafer/templates/wafer/nav.html
Expand Up @@ -2,6 +2,7 @@
<div class="navbar navbar-inverse navbar-static-top {{ WAFER_NAVIGATION_VISIBILITY }}">
<div class="container">
<div class="navbar-header">
{% block navtogglebutton %}
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#wafer-navbar-collapse">
<span class="sr-only">
Toggle navigation
Expand All @@ -11,9 +12,13 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{% endblock navtogglebutton %}
{% block navtitle %}
<a class="navbar-brand" href="{% url 'wafer_page' 'index' %}">{{ WAFER_CONFERENCE_NAME }}</a>
{% endblock navtitle %}
</div>
<div class="navbar-collapse collapse" id="wafer-navbar-collapse">
{% block navmenulist %}
<ul class="nav navbar-nav">
{% for item in WAFER_MENUS.items %}
{% if item.image and item.url %}
Expand Down Expand Up @@ -42,8 +47,11 @@
{% endif %}
{% endfor %}
</ul>
{% endblock navmenulist %}
{% block navauthmenu %}
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
{% block navauthenticated %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{ user.username }}<b class="caret"></b>
Expand All @@ -64,12 +72,16 @@
{% endif %}
</ul>
</li>
{% endblock navauthenticated %}
{% elif not WAFER_HIDE_LOGIN %}
{% block navnotauth %}
<li><a href="{% url 'auth_login' %}">
{% trans 'Sign up / Log In' %}
</a></li>
{% endblock navnotauth %}
{% endif %}
</ul>
{% endblock navauthmenu %}
</div>
</div>
</div>

0 comments on commit e4b1884

Please sign in to comment.