navbar.html 850 Bytes
Newer Older
Ben Waters's avatar
Ben Waters committed
1
{% load staticfiles %}
Daniel W Bond's avatar
Daniel W Bond committed
2 3 4
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
Ben Waters's avatar
Ben Waters committed
5
      <img src="{% static "img/teach.png" %}"> 
Ben Waters's avatar
Ben Waters committed
6
      <a class="navbar-brand" href="{% url 'index' %}"><strong>Your School</strong>&nbsp;Advisor</a>
Daniel W Bond's avatar
Daniel W Bond committed
7 8 9
    </div>
    <div class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
Ben Waters's avatar
Ben Waters committed
10
        <li><a href="#">Me</a></li>
Ben Waters's avatar
Ben Waters committed
11 12
        <li><a href="#">New</a></li>
        <li><a href="#">Compare</a></li>
Daniel W Bond's avatar
Daniel W Bond committed
13 14
      </ul>
      <ul class="nav navbar-nav navbar-right">
Ben Waters's avatar
Ben Waters committed
15
	{% if user.is_authenticated %}
16 17 18
	    <li><a href="{% url 'django.contrib.auth.views.logout' %}">Logout</a></li>
	{% else %}
    
Ben Waters's avatar
Ben Waters committed
19
        <li><a href="{% url 'django.contrib.auth.views.login' %}">Log In</a></li>
20
    {% endif %}
Daniel W Bond's avatar
Daniel W Bond committed
21 22 23 24
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</nav>