Commits

Kevin Veroneau committed b32775a

Added SignIn/SignOut links to navigation bar.

Comments (0)

Files changed (1)

           </button>
           <a class="brand" href="#">Cinema Nick</a>
           <div class="nav-collapse collapse">
+            <p class="navbar-text pull-right">
+              {% if user.is_authenticated %}
+              Logged in as {{user.username}}, <a href="{% url 'auth_logout' %}">Sign out</a>
+              {% else %}
+              Not logged in, <a href="{% url 'auth_login' %}">Sign in</a>
+              {% endif %}
+            </p>
             <ul class="nav">
               <li id="nav_home"><a href="/">Home</a></li>
               <li id="nav_browse"><a href="{% url 'browse_collection' %}">Browse</a></li>