initial commit
[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:10 }}{% 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 </div>
32
33 <div style="clear: both;"></div>
34
35 <div class="toolbar">
36 <div class="social">
37     {% share object.get_absolute_url object.title %}
38 </div>
39 </div>
40
41 <div style="clear: both"></div>
42
43 {% if entry.get_type.commentable %}
44     {% render_comment_list for entry %}
45     <div class="comments">
46     {% entry_comment_form entry %}
47     </div>
48 {% endif %}
49 </div>
50 </div>
51
52 {% endblock %}