summaryrefslogtreecommitdiff
path: root/examples/cloudfiles_project/templates/photos
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cloudfiles_project/templates/photos')
-rw-r--r--examples/cloudfiles_project/templates/photos/photo_list.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/cloudfiles_project/templates/photos/photo_list.html b/examples/cloudfiles_project/templates/photos/photo_list.html
new file mode 100644
index 0000000..81a49a5
--- /dev/null
+++ b/examples/cloudfiles_project/templates/photos/photo_list.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1>Photos in database</h1>
+{% if object_list %}
+<ul>{% spaceless %}
+ {% for object in object_list %}
+ <li>{{ object.image.url }}</li>
+ {% endfor %}
+{% endspaceless %}</ul>
+{% else %}
+<p>No photos exist.</p>
+{% endif %}
+{% endblock %}