diff options
Diffstat (limited to 'bn_django/photos/templates/photos/gallery_list.html')
-rw-r--r-- | bn_django/photos/templates/photos/gallery_list.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/bn_django/photos/templates/photos/gallery_list.html b/bn_django/photos/templates/photos/gallery_list.html new file mode 100644 index 0000000..61225c4 --- /dev/null +++ b/bn_django/photos/templates/photos/gallery_list.html @@ -0,0 +1,56 @@ +{% extends "photos/base.html" %} +{# {% load markup %} #} + +{% block path %}photos{% endblock %} +{% block title %}Photo Galleries{% endblock %} + +{% block content %} +{% if object_list %} +<div id="thumbnail-box"> + <div id="thumbnails"> + {% for item in object_list %} + <div class="lefty"> + + <a href="{{ item.id }}/"> + {% if item.first %} + <img src="{{ item.first.thumburl }}" + alt="{{ item.first.title }}" /> + {% else %} + No photo available + {% endif %} + </a> + </div> + <br /> <br /><a href="{{ item.id }}/"><h3> {{ item.title }}</h3></a> + <br /> <br /> <br /> <br /> + {% endfor %} + </div> +</div> +{% else %} +<p>No galleries have been set up yet.</p> +{% endif %} + + +{% if is_paginated %} + +{% if has_previous %} +<a href="./?page={{ previous }}">« previous</a> | +{% endif %} +{% if has_next %} +<a href="./?page={{ next }}">next »</a> +{% endif %} +{% endif %} + +<!-- +{% if not user.is_anonymous %} +<p> + <a href="{{admin_url}}/photos/gallery/add/">Create a new gallery.</a> +</p> +{% else %} +<p> + <a href="/accounts/login/?next={{ request.path }}"> + Login</a> to create a new gallery. +</p> +{% endif %} +--> + +{% endblock %} |