Started working on the skeleton of an actual website. Created barebones templates...
[~kgodey/maayanwich.git] / templates / onesandwich.html
index a8096db..b9bf28b 100644 (file)
@@ -1,17 +1,17 @@
-<html>
-       <head>
-               <title>Every Ma'ayanwich Ever!</title></head>
-       <body>
-               <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>
-                       {% for i in s.ingredients.all %}
-                               <li>{{ i.name }}
-                       {% endfor %}
-               </ul>
-               <h5>Notes</h5>
-               <p> {{ s.notes }}</p>
-       </body>
-</html>
\ No newline at end of file
+{% extends "base.html" %}
+
+{% block title %} The {{ s.adjective }} Ma'ayanwich {% endblock %}
+
+{% block content %}
+       <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>
+       <h4 class="sandwichsub">Notes</h5>
+       <p class="sandnotes"> {{ s.notes }}</p>
+{% endblock %}
\ No newline at end of file