cas
[prawokultury.git] / migdal / templates / migdal / entry / entry_detail.html
1 {% extends "base.html" %}
2 {% load comments i18n %}
3 {% load common_tags migdal_tags 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 "main_menu" %}
20     {% main_menu 'object' entry %}
21 {% endblock "main_menu" %}
22
23
24 {% block "body" %}
25
26 {% if not entry.published %}
27     <p class="warning">{% trans "This entry hasn't been published yet." %}</p>
28 {% endif %}
29
30 <div class="entry entry-detail entry-{{ entry.type }}">
31 <div class="entry-wrapped">
32
33 {% entry_begin entry 1 %}
34 <div class="body">
35 {{ entry.body }}
36 </div>
37
38 <div style="clear: both;"></div>
39
40 <div class="toolbar">
41 <div class="social">
42     {% share object.get_absolute_url object.title %}
43 </div>
44 </div>
45
46 <div style="clear: both"></div>
47
48 {% if entry.get_type.commentable %}
49     {% render_comment_list for entry %}
50     <div class="comments">
51     {% entry_comment_form entry %}
52     </div>
53 {% endif %}
54 </div>
55 </div>
56
57 {% endblock %}