Comments fully integrated.
[~kgodey/maayanwich.git] / templates / comments / base.html
diff --git a/templates/comments/base.html b/templates/comments/base.html
new file mode 100644 (file)
index 0000000..dd6dc3e
--- /dev/null
@@ -0,0 +1,45 @@
+<html>
+       <head>
+               <link rel="stylesheet" href="{{ media_url }}sandwiches/style.css" type="text/css">
+               <title>{% block title %}Ma'ayanwich Tracker{% endblock %}</title>
+               {% block extrahead %}{% endblock %}
+       </head>
+       <body>
+               <div id="wrapper">
+                       <div id="header">
+                               <h1 class="header">Ma'ayanwich Tracker</h1>
+                       </div>
+                       <div id="sidebar">
+                               <h3 class="navtitle">Account</h3>
+                               <ul class="nav">
+                                       {% 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 %}
+                               </ul>
+                               <h3 class="navtitle">Newest</h3>
+                               <ul class="newest">
+                                       {% for s in sandwiches %}
+                                               <li><a href="{{ s.get_absolute_url }}">{{ s.adjective }}</a></li>
+                                       {% endfor %}
+                               </ul>
+                               <h3 class="navtitle">Sandwiches</h3>
+                               <ul class="newest">
+                                       {% for m in monthly %}
+                                       <li><a href="{% url sandwich_by_month year=m.year, month=m.month %}"> {{ m|date:"F" }} {{m.year}} </a></li>
+                                       {% endfor %}
+                               </ul>
+                               <ul class="newest">
+                                       <li><a href="{% url all_sandwiches %}" class="navlink">All sandwiches</a></li>
+                               </ul>
+                       </div>
+                       <div id="content">
+                               {% block content %}     
+                               {% endblock %}
+                       </div>
+               </div>
+       <body>
+</html>
\ No newline at end of file