summaryrefslogtreecommitdiff
path: root/examples/cloudfiles_project/templates/photos/photo_list.html
diff options
context:
space:
mode:
authorYuval Adam <yuval@segmanta.com>2014-03-20 17:49:16 +0200
committerYuval Adam <yuval@segmanta.com>2014-03-20 17:49:16 +0200
commit75f93a3f7854a7383febd047391e2bfd4caceee0 (patch)
treed5e634ef292c6b84acacc3982dbcaa0d300a346e /examples/cloudfiles_project/templates/photos/photo_list.html
Initial git fork of django-storagesHEADmaster
Diffstat (limited to 'examples/cloudfiles_project/templates/photos/photo_list.html')
-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 %}