Started working on the skeleton of an actual website. Created barebones templates...
[~kgodey/maayanwich.git] / templates / allsandwiches.html
index 102f86c..4877263 100644 (file)
@@ -1,20 +1,18 @@
-<html>
-       <head>
-               <title>Every Ma'ayanwich Ever!</title></head>
-       <body>
-               <h1>All Ma'ayanwiches</h1>
-               {% for s in sandwiches %}
-                       <h3>{{ s.adjective }}</h3>
-                       <p>Made on {{ s.date_made }} and added by {{ s.user.username }}.</p>
-                       <img src="{{ s.picture.url }}">
-                       <h5>Ingredients</h5>
-                       <ul>
+{% 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>
+                       <img class="sandwichimg" src="{{ s.picture.url }}">
+                       <h4 class="sandwichsub">Ingredients</h4>
+                       <ul class="ingredients">
                                {% for i in s.ingredients.all %}
                                        <li>{{ i.name }}
                                {% endfor %}
                        </ul>
-                       <h5>Notes</h5>
-                       <p> {{ s.notes }}</p>
+                       <h4 class="sandwichsub">Notes</h5>
+                       <p class="sandnotes"> {{ s.notes }}</p>
                {% endfor %}
-       </body>
-</html>
\ No newline at end of file
+{% endblock %}
\ No newline at end of file