aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos/templates/photos/gallery_detail.html
blob: 0b3a4af66a172d4c928b188b5c6514ca3815ff97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% extends "photos/base.html" %}
{# {% load markup %} #}
{% block path %}
{{ block.super }}
{% if object %}
  »
  <a href="../{{ object.slug }}/">{{ object.title }}</a>
{% endif %} {% endblock %}
{% block title %}
{% if object %}Photo Set: {{ object.title }} {% endif %}
{% endblock %}
{% block content %}
{% if object %}
{% if object.photo_set.count %}
<table width="100%" class="thumbs">
{% for item in object.photo_set.all %} {% cycle <tr/>,&nbsp;,&nbsp;,&nbsp; %}
    <td class="photo_thumb">
    <a href="../detail/{{ item.id }}/">
    <img src="{{ item.thumburl }}"
        alt="{{ item.title }}" />
    </td> {% endfor %}
</table>
{% 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 %}