admin preview,
[prawokultury.git] / migdal / templates / migdal / entry / entry_detail.html
index c101e51..1f322be 100755 (executable)
@@ -1,28 +1,35 @@
 {% extends "base.html" %}
-{% load comments %}
+{% load comments i18n %}
 {% load migdal_tags %}
 
 
 {% 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 1 %}
+<div class="body">
 {{ entry.body }}
+</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>
 
 {% endblock %}
\ No newline at end of file