Added a better slugify function, monthly archives work, notes are optional now.
[~kgodey/maayanwich.git] / templates / allsandwiches.html
index 24f15b7..2a7435c 100644 (file)
@@ -1,7 +1,6 @@
 {% extends "base.html" %}
 
 {% block content %}
-       <h1 class="pagetitle">All Ma'ayanwiches</h1>
                {% for s in allsandwiches %}
                        <h3 class="sandwichtitle">{{ s.adjective }}</h3>
                        <p class="metadata">Made on {{ s.date_made }} and added by {{ s.user.username }}.</p>
@@ -14,7 +13,9 @@
                                        <li>{{ i.name }}
                                {% endfor %}
                        </ul>
-                       <h4 class="sandwichsub">Notes</h5>
-                       <p class="sandnotes"> {{ s.notes }}</p>
+                       {% if s.notes %}
+                               <h4 class="sandwichsub">Notes</h5>
+                               <p class="sandnotes"> {{ s.notes }}</p>
+                       {% endif %}
                {% endfor %}
 {% endblock %}
\ No newline at end of file