summaryrefslogtreecommitdiffstats
path: root/bn_django/photos/templates/photos/photo_detail.html
blob: d9c2177d960e0a39986e53f79dd4e22f5f559fbc (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{% extends "photos/base.html" %}
{# {% load markup %} #}

{% block path %}
  <a href="../..">photos</a> &raquo;
  <a href="../../{{ object.gallery.id }}">{{ object.gallery.title }}</a>
{% endblock %}

{% block title %} 
{% if object %}
{{ object.title }}
{% endif %}
{% endblock %}

{% block content %}

{% if object %}
{% if object.next %}
<div class="right_stuff">
<div class="small-image-box">
<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> 
  <a href="../{{ object.next.id }}/">
  Next:<br/>
    <img src="{{ object.next.thumburl}}" alt="{{ object.next.title }}"/> 
  </a> <!--
  <a href="../{{ object.next.id }}/">
  <span>{{ object.next.title }} &raquo;</span></a> -->
</div></div>

{% endif %}

{% if object.prev %}
<div class="right_stuff">
<div class="small-image-box">
  <a href="../{{ object.prev.id }}/">
  Previous:<br />  
    <img src="{{ object.prev.thumburl}}" alt="{{ object.prev.title }}"/>
  </a> <!--
  <a href="../{{ object.prev.id }}/">
  <span>&laquo;  {{ object.prev.title }} </span></a> -->
</div>
</div>
{% endif %}
<center>
<div id="centerize">
  <a href="{{ object.fullurl }}">
    <img src="{{ object.dispurl }}"
         alt="{{ object.title }}" />
  </a>
  <div>
    <p class="photodesc"> {{ object.desc }} </p>
    {% if object.photographer %}
    <p class="photographer">Photo by {{ object.photographer }}.</p>
    {% endif %}
    {% if object.date %}
    <p class="photodate">Photo taken {{ object.date }}.</p>
    {% endif %}
    {% if object.extra %}
    <h3 class="photoextra">More information</h3>
    <p class="photoextra">{{ object.extra }}</p>
    {% endif %}
  </div>
</div>
</center>
{% if object.prev %}
  <a href="../{{ object.prev.id }}/" class="lefty">
    &laquo; previous
  </a>
{% endif %}
{% if object.next %}
  <a href="../{{ object.next.id }}/" class="righty">
    next &raquo;
  </a>
{% endif %}
<br />

<!--
{% if not user.is_anonymous %}
<p>
  <a href="{{ admin_url }}/photos/photo/{{ object.id }}/">
    Edit this image.
  </a>
</p>
{%else %}
<p>
  <a href="/accounts/login/?next={{ request.path }}">
    Login</a> to edit this image.
</p>
{% endif %}
-->
{% else %}
<p>This is not the photo you are looking for.</p>
{% endif %}


{% endblock %}