templates/photoblog/entry.html @ 677d5ff5c56e
Pretty much done with the photo blog.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sun, 15 Feb 2009 00:34:21 -0500 |
parents |
91f05965e207 |
children |
(none) |
{% 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.original_image.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 %}