a910bb15a897b397c1d716ec871172889495a6ff
[~kgodey/maayanwich.git] /
1 <html>
2         <head>
3                 <link rel="stylesheet" href="http://127.0.0.1:8000/sandwiches/style.css" type="text/css">
4                 <title>{% block title %}Ma'ayanwich Tracker{% endblock %}</title>
5         </head>
6         <body>
7                 <div id="wrapper">
8                         <div id="header">
9                                 <h1 class="header">Ma'ayanwich Tracker</h1>
10                         </div>
11                         <div id="sidebar">
12                                 <h3 class="navtitle">Account</h3>
13                                 <ul class="nav">
14                                         {% if user.is_authenticated %}
15                                                 <li><a href="http://127.0.0.1:8000/sandwich/add/" class="navlink">Add sandwich</a></li>
16                                                 <li><a href="http://127.0.0.1:8000/logout/" class="navlink">Logout</a></li>
17                                         {% else %}
18                                                 <li><a href="http://127.0.0.1:8000/login/" class="navlink">Login</a></li>
19                                                 <li><a href="http://127.0.0.1:8000/signup/" class="navlink">Signup</a></li>
20                                         {% endif %}
21                                 </ul>
22                                 <h3 class="navtitle">Newest</h3>
23                                 <ul class="newest">
24                                         {% for s in sandwiches %}
25                                                 <li><a href="{{ s.get_absolute_url }}">{{ s.adjective }}</a></li>
26                                         {% endfor %}
27                                 </ul>
28                                 <h3 class="navtitle">Sandwiches</h3>
29                                 <ul class="newest">
30                                         {% for m in monthly %}
31                                         <li><a href="http://127.0.0.1:8000/sandwich/{{ m.year }}/{{ m.month }}/"> {{ m|date:"F" }} {{m.year}} </a></li>
32                                         {% endfor %}
33                                 </ul>
34                                 <ul class="newest">
35                                         <li><a href="http://127.0.0.1:8000/sandwich/all/" class="navlink">All sandwiches</a></li>
36                                 </ul>
37                         </div>
38                         <div id="content">
39                                 {% block content %}     
40                                 {% endblock %}
41                         </div>
42                 </div>
43         <body>
44 </html>