From: Kriti Godey Date: Fri, 5 Mar 2010 21:17:34 +0000 (-0500) Subject: Added a custom context processor (to pass in the context required for the sidebar... X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/commitdiff_plain/df689da172dfd36fe2512833a5c7c07ad5cb6446 Added a custom context processor (to pass in the context required for the sidebar), and made image display depend on whether an image actually existed. --- diff --git a/templates/allsandwiches.html b/templates/allsandwiches.html index 4877263..24f15b7 100644 --- a/templates/allsandwiches.html +++ b/templates/allsandwiches.html @@ -5,7 +5,9 @@ {% for s in allsandwiches %}

{{ s.adjective }}

Made on {{ s.date_made }} and added by {{ s.user.username }}.

- + {% if s.picture %} + + {% endif %}

Ingredients