blob: 318091bcf3f012b3c63b40cf39b0a30e5bbd99d9 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{% extends "photos/base.html" %}
{# {% load markup %} #}
{% block path %}
{{ block.super }}
{% 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 %}
<!--
{% 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 %}
|