3 <link rel="stylesheet" href="{{ media_url }}sandwiches/style.css" type="text/css">
4 <title>{% block title %}Ma'ayanwich Tracker{% endblock %}</title>
5 {% block extrahead %}{% endblock %}
10 <h1 class="header">Ma'ayanwich Tracker</h1>
13 <h3 class="navtitle">Account</h3>
15 {% if user.is_authenticated %}
16 <li><a href="{% url add_sandwich %}" class="navlink">Add sandwich</a></li>
17 <li><a href="{% url edit_user gusername=request.user.username %}" class="navlink">User Settings</a></li>
18 <li><a href="{% url logout %}" class="navlink">Logout</a></li>
20 <li><a href="{% url login %}" class="navlink">Login</a></li>
21 <li><a href="{% url signup %}" class="navlink">Signup</a></li>
24 <h3 class="navtitle">Newest</h3>
26 {% for s in sandwiches %}
27 <li><a href="{{ s.get_absolute_url }}">{{ s.adjective }}</a></li>
30 <h3 class="navtitle">Sandwiches</h3>
32 {% for m in monthly %}
33 <li><a href="{% url sandwich_by_month year=m.year, month=m.month %}"> {{ m|date:"F" }} {{m.year}} </a></li>
37 <li><a href="{% url index_sandwich %}" class="navlink">All sandwiches</a></li>