summaryrefslogtreecommitdiffstats
path: root/bn_django/photos/templates/photos/gallery_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/photos/templates/photos/gallery_detail.html')
-rw-r--r--bn_django/photos/templates/photos/gallery_detail.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/bn_django/photos/templates/photos/gallery_detail.html b/bn_django/photos/templates/photos/gallery_detail.html
new file mode 100644
index 0000000..f9d1bd6
--- /dev/null
+++ b/bn_django/photos/templates/photos/gallery_detail.html
@@ -0,0 +1,61 @@
+{% extends "photos/base.html" %}
+{# {% load markup %} #}
+
+{% block path %}
+ <a href="../">photos</a> &raquo;
+{% if object %}
+ <a href="../{{ object.id }}">{{ object.title }}</a>
+{% endif %}
+{% endblock %}
+
+{% block title %}
+{% if object %}
+Gallery: {{ object.title }}
+{% endif %}
+{% endblock %}
+
+{% block content %}
+{% if object %}
+<br />
+{% if object.photo_set.count %}
+
+{% for item in object.photo_set.all %}
+
+<span class="photo_thumb">
+ <a href="../detail/{{ item.id }}">
+ <img src="{{ item.thumburl }}"
+ alt="{{ item.title }}" />
+ <!--<a href="../detail/{{ item.id }}" class="caption">{{ item.title }}</a>
+</a> -->
+
+</span>
+{% endfor %}
+
+{% else %}
+<p>There are no photos in this gallery. If you just uploaded a batch
+of photos, try hitting your browser's reload button to see if they
+show up.</p>
+{% endif %}
+ &nbsp;
+<!--
+{% if not user.is_anonymous %}
+<p>
+ <a href="{{ object.get_admin_url }}">Edit this gallery.</a><br/>
+ <a href="{{ admin_url }}/photos/photo/add/">Add a photo to
+ this gallery.</a><br/>
+ <a href="{{photos_url}}/import/{{ object.id }}/">Add a bunch
+ of photos to this gallery.</a>
+</p>
+{% else %}
+<p>
+ <a href="/accounts/login/?next={{ request.path }}">
+ Login</a> to add or edit photos
+</p>
+{% endif %}
+-->
+
+{% else %}
+<p>This is not the gallery you are looking for.</p>
+{% endif %}
+
+{% endblock %}