navbar.html 1.22 KB
Newer Older
1
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
Jason D Yeomans's avatar
Jason D Yeomans committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <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="/"><strong>GMU</strong>ROOMLIST</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li class="active"><a href="/">Home</a>
        </li>
        <li><a href="/#about">About</a>
        </li>
Jason Yeomans's avatar
Jason Yeomans committed
18
        <li><a href="/housing/buildings">Buildings</a>
Jason D Yeomans's avatar
Jason D Yeomans committed
19
20
21
        </li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
22
        {% if user.is_authenticated %}
23
        <li><a href="/accounts/student/{{ user.username }}">{{ user.username }}</a>
Jason D Yeomans's avatar
Jason D Yeomans committed
24
        </li>
25
        <li><a href="/accounts/logout/">Logout</a>
Jason D Yeomans's avatar
Jason D Yeomans committed
26
27
        </li>
        {% else %}
28
        <li><a href="/accounts/login/">Login</a>
Jason D Yeomans's avatar
Jason D Yeomans committed
29
30
31
32
33
34
35
        </li>
        {% endif %}
      </ul>
    </div>
    <!--/.nav-collapse -->
  </div>
</nav>