ae3eb923b7036181a7c7d30574432f785683a790
[prawokultury.git] / migdal / templates / comments / migdal / entry / preview.html
1 {% extends "base.html" %}
2 {% load comments gravatar i18n %}
3 {% load migdal_tags fnp_markup %}
4
5
6 {% block "main_menu" %}
7     {% main_menu 'object' entry %}
8 {% endblock "main_menu" %}
9
10
11 {% block "body" %}
12
13 <div class="entry entry-detail entry-{{ entry.type }}">
14 <div class="entry-wrapped">
15
16 {% entry_begin form.target_object 1 %}
17 <div class="body">
18 {{ form.target_object.body }}
19 </div>
20
21 {% if form.target_object.get_type.commentable %}
22     <div style="clear: both"></div>
23
24     {% render_comment_list for form.target_object %}
25
26     <h2 class="section">{% trans "Preview your comment" %}</h2>
27     <div class="comments">
28
29     <div class="comment preview">
30         <img class="avatar" src="{% gravatar_for_email form.email.value 64 %}" alt="Avatar"/>
31         <div class="comment-data">
32         <div class="comment-author">{{ form.name.value }}</div>
33         </div>
34         <div class="body">{{ comment|textile_restricted_pl }}</div>
35         <div style="clear: both"></div>
36     </div>
37
38     {% include "comments/form.html" %}
39
40     </div>
41 {% endif %}
42 </div>
43 </div>
44
45 {% endblock %}