social
[prawokultury.git] / migdal / templates / migdal / entry / entry_detail.html
index f37777e..ef842b8 100755 (executable)
@@ -1,30 +1,55 @@
 {% extends "base.html" %}
-{% load comments %}
-{% load migdal_tags %}
+{% load comments i18n %}
+{% load common_tags migdal_tags share %}
+
+
+{% block "titleextra" %}{{ entry.title }} ::{% endblock %}
+{% block "ogtitle" %}{{ entry.title }}{% endblock %}
+{% block "ogtype" %}article{% endblock %}
+{% block "ogdescription"%}{{ entry.lead|striptags|truncatewords:10 }}{% endblock %}
+{% block "ogimage" %}{% spaceless %}
+{% if entry.image %}
+    {{ entry.image.url|build_absolute_uri:request }}
+{% else %}
+    {{ block.super }}
+{% endif %}
+{% endspaceless %}{% endblock %}
 
 
 {% block "main_menu" %}
-    {% if entry.categories %}
-        {% main_menu 'objects' entry.categories.all %}
-    {% else %}
-        {% main_menu 'entry_type' entry.type %}
-    {% endif %}
+    {% main_menu 'object' entry %}
 {% endblock "main_menu" %}
 
 
 {% block "body" %}
 
-<div class="entry entry-short entry-{{ entry.type }}">
+{% if not entry.published %}
+    <p class="warning">{% trans "This entry hasn't been published yet." %}</p>
+{% endif %}
+
+<div class="entry entry-detail entry-{{ entry.type }}">
 <div class="entry-wrapped">
 
-{% entry_begin entry %}
+{% entry_begin entry %}
 <div class="body">
 {{ entry.body }}
 </div>
 
+<div style="clear: both;"></div>
+
+<div class="toolbar">
+<div class="social">
+    {% share object.get_absolute_url object.title %}
+</div>
+</div>
+
+<div style="clear: both"></div>
+
 {% if entry.get_type.commentable %}
     {% render_comment_list for entry %}
+    <div class="comments">
     {% entry_comment_form entry %}
+    </div>
 {% endif %}
 </div>
 </div>