Bugfix
[django-migdal.git] / migdal / templates / migdal / entry / entry_detail.html
1 {% extends "base.html" %}
2 {% load comments i18n %}
3 {% load fnp_common migdal_tags fnp_share %}
4
5
6 {% block titleextra %}{{ entry.title }} :: {% endblock %}
7 {% block ogtitle %}{{ entry.title }}{% endblock %}
8 {% block ogtype %}article{% endblock %}
9 {% block ogdescription %}{{ entry.lead|striptags|truncatewords:16 }}{% endblock %}
10 {% block ogimage %}{% spaceless %}
11 {% if entry.image %}
12     {{ entry.image.url|build_absolute_uri:request }}
13 {% else %}
14     {{ block.super }}
15 {% endif %}
16 {% endspaceless %}{% endblock %}
17
18 {% block headextra %}
19     {% if entry.canonical_url %}<link rel="canonical" href="{{ entry.canonical_url }}"/>{% endif %}
20 {% endblock %}
21
22
23 {% block body %}
24
25 {% if not entry.published %}
26     <p class="warning">{% trans "This entry hasn't been published yet." %}</p>
27 {% endif %}
28
29 <div class="entry entry-detail entry-{{ entry.type }}">
30 <div class="entry-wrapped">
31
32 {% entry_begin entry 1 %}
33 <div class="body">
34 {{ entry.body }}
35
36 {% for inline_html in entry.inline_html %}
37 <div class="inline_html">
38     {{ inline_html|safe }}
39 </div>
40 {% endfor %}
41
42 </div>
43
44 <div style="clear: both;"></div>
45
46 <div class="toolbar">
47 <div class="social">
48     {% share object.get_absolute_url object.title %}
49 </div>
50 </div>
51
52 <div style="clear: both"></div>
53
54 {% if entry.get_type.commentable %}
55     {% render_comment_list for entry %}
56     <div class="comments">
57     {% entry_comment_form entry %}
58     </div>
59 {% endif %}
60 </div>
61 </div>
62
63 {% endblock %}