diff options
Diffstat (limited to 'design/templates/details/photo.html')
-rw-r--r-- | design/templates/details/photo.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/design/templates/details/photo.html b/design/templates/details/photo.html new file mode 100644 index 0000000..200995f --- /dev/null +++ b/design/templates/details/photo.html @@ -0,0 +1,85 @@ +{% extends 'base.html' %} +{% load typogrify %} +{% block pagetitle %}Luxagraf | {{object.title|title|smartypants|safe}}{% endblock %} +{% block metadescription %}Luxagraf: Photo, {{object.title}}, Photographer: Scott Gilbertson, Published: {{ object.pub_date|date:"N j, Y" }} {{ object.pub_date|date:"h:i a" }}Camera:{%if object.exif_make%}{%if object.exif_make != 'Canon'%}{{ object.exif_make }}{%endif%} {{ object.exif_model }}{% else %}Canon Powershot S45{%endif%}, Aperture: {%if object.exif_aperture%}{{ object.exif_aperture }}{%else%}Not Recorded{%endif%}, Shutter Speed: {%if object.exif_shutter%}{{ object.exif_shutter }} sec{%else%}Not Recorded{%endif%}, Film Speed: {%if object.exif_iso%}{{ object.exif_iso }} ISO{%else%}Not Recorded{%endif%}.{% endblock %} +{% block date %}{{object.pub_date|date:"F j, Y"}}<span class="small byline">{% if object.location.state.country.name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}{%endif%}</span>{% endblock %} + + + + {% block title %}{{object.title|smartypants|safe}}{% endblock %} + + + {% block primary %} + + <a href="http://flickr.com/photos/luxagraf/{{object.flickr_id}}/" title="View {{object.flickr_title}} on Flickr.com"><img class="flickr-image" src="{{ object.get_medium_url }}" alt="{{object.title}}" title="{{object.title}}" /></a> + {% if object.description != 'None' %} + <p>{{ object.description|smartypants|widont|safe }}</p> + {%endif %} + <p>Other Sizes: <a href="{{object.get_large_url}}" title="see large image">Large</a> and + <a href="http://flickr.com/photo_zoom.gne?id={{object.flickr_id}}&size=o" title="see original image">Original</a></p> + + + + <div id="extra"> + + + + <p>If you enjoy this photo, you can follow along on <a href="http://flickr.com/photos/luxagraf/" title="Flickr" rel="me">Flickr</a>, <a href="http://www.facebook.com/profile.php?id=730956404" title="Facebook" rel="me">Facebook</a>, <a href="http://friendfeed.com/luxagraf" title="friendfeed" rel="me">FriendFeed</a> or by subscribing to the <a href="http://feeds.feedburner.com/luxagraf/blog" title="writing RSS 2.0 feed">RSS Feed</a>. For more about luxagraf, see the <a href="/about/" title="about luxagraf">about page</a>. To get in touch please use the <a href="/contact/" title="contact me">contact form</a> or leave a comment below.</p> + </div> + + <div id="nav"> + <ul> + {% if object.get_previous_published%} + <li> + <a href="{{ object.get_previous_published.get_absolute_url }}" title=" {{object.get_previous_published.title}}">«previous</a> + </li> + {%endif%} + {% if object.get_next_published%} + <li class="next"> + <a href="{{ object.get_next_published.get_absolute_url }}" title=" {{object.get_next_published.title}}">next»</a> + + </li> + {%endif%} + </ul> + </div> + <h4 id="comment-header">comments</h4> + <p>If you'd like to leave a comment, you may do so on <a href="http://flickr.com/photos/luxagraf/{{object.flickr_id}}/" title="leave a comment on Flickr">Flickr</a>.</p> + + {% endblock %} + + + +{% block sidebar %} + <div id="sidebar"> + <div id="nav"> + <ul> + {% if object.get_previous_published%} + <li> + <a href="{{ object.get_previous_published.get_absolute_url }}" title=" {{object.get_previous_published.title}}">« previous</a> + </li> + {%endif%} + {% if object.get_next_published%} + <li class="next"> + <a href="{{ object.get_next_published.get_absolute_url }}" title=" {{object.get_next_published.title}}">next »</a> + + </li> + {%endif%} + </ul> + </div> + + <div class="blok"> + <h4>Image Data</h4> + + <dl class="sidebar meta"> + <dt>Camera:</dt> + <dd>{%if object.exif_make%}{%if object.exif_make != 'Canon'%}{{ object.exif_make }}{%endif%} {{ object.exif_model }}{% else %}Canon Powershot S45{%endif%}</dd> + <dt>Aperture:</dt> + <dd>{%if object.exif_aperture%}{{ object.exif_aperture }}{%else%}Not Recorded{%endif%}</dd> + <dt>Shutter Speed:</dt> + <dd>{%if object.exif_shutter%}{{ object.exif_shutter }} sec{%else%}Not Recorded{%endif%}</dd> + <dt>Film Speed:</dt> + <dd>{%if object.exif_iso%}{{ object.exif_iso }} ISO{%else%}Not Recorded{%endif%}</dd> + </dl> + </div> + </div> +{% endblock %}
\ No newline at end of file |