PageRenderTime 21ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/blogmaker/blog/templates/blog/includes/post.html

http://blogmaker.googlecode.com/
HTML | 63 lines | 42 code | 10 blank | 11 comment | 0 complexity | 5a27abcd62cec0bb5c0a57fa63cead32 MD5 | raw file
 1{# Copyright (c) 2006-2007, PreFab Software Inc. #}
 2
 3
 4{% load blog_extras %}
 5{% load prefab_tags %}
 6{% load comment_utils %}
 7{% load markup %}
 8
 9<div class='posts{% if forloop.last %}_last{% endif %}{% if forloop.first %}_first{% endif %}{% if not forloop %}_single{% endif %}'>
10
11<div class="post_title">
12{% if forloop %}<h2 class="title_nospace">{% else %}<h1>{% endif %}<a href='{{ object.get_absolute_url }}' title='{{ object.headline }}' rel='bookmark' class='title'>{{ object.headline }}</a>{% if forloop %}</h2>{% else %}</h1>{% endif %}
13</div>
14
15<div class="post_infos">
16<span class='blog_sm_wo'>Posted by </span><a href='{% BLOG_ROOT %}user/{{ object.user }}/' class='blog_sm'>{{ object.user|title }}</a><span class='blog_sm_wo'> on </span><a href='{% BLOG_ROOT %}{{ object.pub_date|date:"Y/m" }}/' class='blog_sm'>{{ object.pub_date|date:"F" }}</a> <a href='{% BLOG_ROOT %}{{ object.pub_date|date:"Y/m/d" }}/' class='blog_sm'>{{ object.pub_date|date:"d" }}</a>, <a href='{% BLOG_ROOT %}{{ object.pub_date|date:"Y" }}/' class='blog_sm'>{{ object.pub_date|date:"Y" }}</a><span class='blog_sm_wo'> at {{ object.pub_date|time }}</span>
17</div>
18
19{% if object.image %}
20<div class="post_image">
21<table cellspacing='0' cellpadding='0'>
22<tr>
23<td align='left'>
24<a href='{{ object.get_absolute_url }}' class='image'><img src='{{ object.get_image_url }}' class='blog' alt="Link to {{ object.headline }}"/></a>
25</td>
26</tr>
27<tr>
28<td align='right'{% if not object.copyright %}height='8'{% endif %} class='very_small'>
29{{ object.copyright }}
30</td>
31</tr>
32</table>
33</div>
34{% endif %}
35
36<div class="post_body">
37{{ object.body|markdown|expand_shortcuts }}
38</div>
39
40{% if object.get_related_entries|length %}
41{% include "blog/includes/related_entries.html" %}
42{% endif %}
43
44<!-- Autodiscovery for trackback url
45  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
46           xmlns:dc="http://purl.org/dc/elements/1.1/"
47           xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
48  <rdf:Description
49      rdf:about="{{ object.get_absolute_url }}"
50      dc:identifier="{{ object.get_absolute_url }}"
51      dc:title="{{ object.headline }}"
52      trackback:ping="{{ object.get_absolute_url }}trackback/" />
53  </rdf:RDF>
54-->
55<div class="post_comments_tags">
56{% get_public_comment_count for blog.entry object.id as comment_count %}
57{% get_public_trackback_count for blog.entry object.id as trackback_count %}
58<a href='{{ object.get_absolute_url }}#comments' class='blog_sm'>{{ comment_count }} comment{{ comment_count|pluralize }}</a>,
59<a href='{{ object.get_absolute_url }}#trackbacks' class='blog_sm'>{{ trackback_count }} trackback{{ trackback_count|pluralize }}</a> (<a href="{{ object.get_absolute_url }}trackback/">URL</a>)
60{% for t in object.get_tags %}{% if forloop.first %}<span class="blog_sm_wo">,</span>&nbsp;<a href='{% setting 'BLOG_ROOT' %}tag/' class='blog_sm'>Tags:</a>{% endif %} <a href="{{ t.get_absolute_url }}" title="Entries tagged '{{ t.tag }}'" class='blog_sm'>{{ t.tag }}</a>{% endfor %} 
61</div>
62
63</div>