add inline html
[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
19 {% block "body" %}
20
21 {% if not entry.published %}
22     <p class="warning">{% trans "This entry hasn't been published yet." %}</p>
23 {% endif %}
24
25 <div class="entry entry-detail entry-{{ entry.type }}">
26 <div class="entry-wrapped">
27
28 {% entry_begin entry 1 %}
29 <div class="body">
30 {{ entry.body }}
31
32 {% for inline_html in entry.inline_html %}
33 <div class="inline_html">
34     {{ inline_html|safe }}
35 </div>
36 {% endfor %}
37
38 </div>
39
40 <div style="clear: both;"></div>
41
42 <div class="toolbar">
43 <div class="social">
44     {% share object.get_absolute_url object.title %}
45 </div>
46 </div>
47
48 <div style="clear: both"></div>
49
50 {% if entry.get_type.commentable %}
51     {% render_comment_list for entry %}
52     <div class="comments">
53     {% entry_comment_form entry %}
54     </div>
55 {% endif %}
56 </div>
57 </div>
58
59 {% endblock %}