Modified templates a little for sandwich by user and sandwich by month (to have more...
[~kgodey/maayanwich.git] / templates / base.html
1 <html>
2         <head>
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 %}
6         </head>
7         <body>
8                 <div id="wrapper">
9                         <div id="header">
10                                 <h1 class="header">Ma'ayanwich Tracker</h1>
11                         </div>
12                         <div id="sidebar">
13                                 <h3 class="navtitle">Account</h3>
14                                 <ul class="nav">
15                                         {% if user.is_authenticated %}
16                                                 <li><a href="{% url sandwich_user username=request.user.username %}" class="navlink">My Sandwiches</a></li>
17                                                 <li><a href="{% url add_sandwich %}" class="navlink">Add sandwich</a></li>
18                                                 <li><a href="{% url edit_user gusername=request.user.username %}" class="navlink">User Settings</a></li>
19                                                 <li><a href="{% url logout %}" class="navlink">Logout</a></li>
20                                         {% else %}
21                                                 <li><a href="{% url login %}" class="navlink">Login</a></li>
22                                                 <li><a href="{% url signup %}" class="navlink">Signup</a></li>
23                                         {% endif %}
24                                 </ul>
25                                 <h3 class="navtitle">Newest</h3>
26                                 <ul class="newest">
27                                         {% for s in sandwiches %}
28                                                 <li><a href="{{ s.get_absolute_url }}">{{ s.adjective }}</a></li>
29                                         {% endfor %}
30                                 </ul>
31                                 <h3 class="navtitle">Sandwiches</h3>
32                                 <ul class="newest">
33                                         {% for m in monthly %}
34                                         <li><a href="{% url sandwich_by_month year=m.year, month=m.month %}"> {{ m|date:"F" }} {{m.year}} </a></li>
35                                         {% endfor %}
36                                 </ul>
37                                 <ul class="newest">
38                                         <li><a href="{% url index_sandwich %}" class="navlink">All sandwiches</a></li>
39                                 </ul>
40                         </div>
41                         <div id="content">
42                                 {% block content %}     
43                                 {% endblock %}
44                         </div>
45                 </div>
46         <body>
47 </html>