templates/photoblog/entry.html @ 91f05965e207
More changes for the photo blog.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 14 Feb 2009 23:35:49 -0500 |
parents |
444fa384fab8 |
children |
677d5ff5c56e |
{% extends "photoblog/base.html" %}
{% load markup %}
{% load typogrify %}
{% block title %}{{ entry.title }}{% endblock %}
{% block script %}
{% endblock %}
{% block content %}
<div id="photoblog-entry">
<h1 id="photoblog-entry-title">
<a href="{{ entry.get_absolute_url }}">
{{ entry.title|typogrify }}
</a>
</h1>
<div id="photoblog-entry-date">
<p>
Posted on {{ entry.pub_date|date:"F j, Y" }}
</p>
</div>
<img id="photoblog-main-image" src="{{ entry.display.url }}" />
<div id="photoblog-entry-body" class="content">
{{ entry.body|markdown|typogrify }}
</div>
<div id="photoblog-nav">
<div id="photoblog-nav-newer">
{% if next %}
<div class="photoblog-nav-entry">
<h2>Newer</h2>
</div>
<div class="photoblog-nav-entry">
<a href="{{ next.get_absolute_url }}">
<img src="{{ next.thumbnail.url }}" />
</a>
<h3>
<a href="{{ next.get_absolute_url }}">
{{ next.title }}
</a>
</h3>
</div>
{% else %}
{% endif %}
</div>
<div id="photoblog-nav-older">
{% if previous %}
<div class="photoblog-nav-entry">
<h2>Older</h2>
</div>
<div class="photoblog-nav-entry">
<a href="{{ previous.get_absolute_url }}">
<img src="{{ previous.thumbnail.url }}" />
</a>
<h3>
<a href="{{ previous.get_absolute_url }}">
{{ previous.title }}
</a>
</h3>
</div>
{% else %}
{% endif %}
</div>
</div>
</div>
{% endblock %}