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 logout %}" class="navlink">Logout</a></li>
19 <li><a href="{% url login %}" class="navlink">Login</a></li>
20 <li><a href="{% url signup %}" class="navlink">Signup</a></li>
23 <h3 class="navtitle">Newest</h3>
25 {% for s in sandwiches %}
26 <li><a href="{{ s.get_absolute_url }}">{{ s.adjective }}</a></li>
29 <h3 class="navtitle">Sandwiches</h3>
31 {% for m in monthly %}
32 <li><a href="{% url sandwich_by_month year=m.year, month=m.month %}"> {{ m|date:"F" }} {{m.year}} </a></li>
36 <li><a href="{% url all_sandwiches %}" class="navlink">All sandwiches</a></li>