- <li><a href="http://127.0.0.1:8000/sandwich/all/" class="navlink">All sandwiches</a></li>
- <li><a href="http://127.0.0.1:8000/sandwich/add/" class="navlink">Add sandwich</a></li>
- <li><a href="http://127.0.0.1:8000/login/" class="navlink">Login</a></li>
- <li><a href="http://127.0.0.1:8000/signup/" class="navlink">Signup</a></li>
- <li>Monthly Links (TODO)</li>
- <li>Logout (TODO)</li>
+ {% if user.is_authenticated %}
+ <li><a href="{% url add_sandwich %}" class="navlink">Add sandwich</a></li>
+ <li><a href="{% url logout %}" class="navlink">Logout</a></li>
+ {% else %}
+ <li><a href="{% url login %}" class="navlink">Login</a></li>
+ <li><a href="{% url signup %}" class="navlink">Signup</a></li>
+ {% endif %}