Rewrite to Django from scratch. Now it's much more user-friendly.
[cookbook.git] / example / data / template / cookbook / recipes.html
diff --git a/example/data/template/cookbook/recipes.html b/example/data/template/cookbook/recipes.html
new file mode 100644 (file)
index 0000000..4fd2828
--- /dev/null
@@ -0,0 +1,18 @@
+{% extends "cookbook/base.html" %}
+
+{% block title %}
+{{ title }}
+{% endblock %}
+
+{% block content %}
+<h1>{{ title }}</h1>
+{% if recipes %}
+    <ul>
+    {% for recipe in recipes %}
+        <li><a href="{% url recipe recipe.id %}">{{ recipe.name }}</a></li>
+    {% endfor %}
+    </ul>
+{% else %}
+    <p>No recipes are available.</p>
+{% endif %}
+{% endblock %}