diff options
Diffstat (limited to 'bn_django/photos/templates/photos/photo_detail.html')
-rw-r--r-- | bn_django/photos/templates/photos/photo_detail.html | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html new file mode 100644 index 0000000..d9c2177 --- /dev/null +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -0,0 +1,96 @@ +{% extends "photos/base.html" %} +{# {% load markup %} #} + +{% block path %} + <a href="../..">photos</a> » + <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 }} »</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>« {{ 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"> + « previous + </a> +{% endif %} +{% if object.next %} + <a href="../{{ object.next.id }}/" class="righty"> + next » + </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 %} |