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 | {% extends "blog/base_blog.html" %}
{% load blog tagging_tags inlines markup frontendadmin_tags %}
{% block title %}{{ object.title }} | {{ block.super }}{% endblock %}
{% block body_class %}{{ block.super }} post_detail{% endblock %}
{% block body_id %}post_{{ object.id }}{% endblock %}
{% comment 'previous and next posts' %}
{% block content_title %}
<p class="other_posts">
{% if object.get_previous_by_publish %}
<a class="previous" href="{{ object.get_previous_post.get_absolute_url }}">« {{ object.get_previous_post }}</a>
{% endif %}
{% if object.get_next_by_publish %}
| <a class="next" href="{{ object.get_next_post.get_absolute_url }}">{{ object.get_next_post }} »</a>
{% endif %}
</p>
{% endblock %}
{% endcomment %}
{% block content %}
<div class="post clearfix">
<h2>{{ object.title }}</h2>
<div>
{% frontendadmin_change object %}
{% frontendadmin_delete object %}
</div>
<p class="teaser">{{ object.tease|safe }} <br>
{{ object.publish|date }}<br>
<span style="font-size: 0.8em;">{% for category in object.categories.all %}<a href="{% url basic.blog.views.category_detail category.slug %}" title="{{ category.title }}">{{ category.title }}</a>, {% endfor %}</span>
</p>
<div class="body">
{{ object.body|markdown:"codehilite" }}
</div>
</div>
{% tags_for_object object as tag_list %}
{% if tag_list %}
<p class="inline_tag_list"><strong>Related tags:</strong>
{% for tag in tag_list %}
<a href="/tags/{{ tag }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
</p>
{% endif %}
<br>
<hr>
<div class="subscribe clearfix">Share this with the rest of the world
<ul>
<li><a href="http://twitter.com/?status=reading: {{ object.title }} - {{ SITE_URL }}{{ object.get_absolute_url }}" target="_blank">Twitter this</a></li>
<li><a href="http://www.reddit.com/r/programming/submit">Reddit this</a></li>
<li><a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;">Add to Delicious</a></li>
<li><a href="/feeds/latest/">Subscribe RSS</a></li>
</ul>
</div>
<br>
<hr><br>
{% load disqus_tags %}
{% disqus_show_comments %}
{% endblock %}
|