3560b0153e7c235785c4ad6c8bbf165556acd3f2
[django-migdal.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 "body" %}
7
8 <div class="entry entry-detail entry-{{ entry.type }}">
9 <div class="entry-wrapped">
10
11 {% entry_begin form.target_object 1 %}
12 <div class="body">
13 {{ form.target_object.body }}
14 </div>
15
16 {% if form.target_object.get_type.commentable %}
17     <div style="clear: both"></div>
18
19     {% render_comment_list for form.target_object %}
20
21     <h2 class="section">{% trans "Preview your comment" %}</h2>
22     <div class="comments">
23
24     <div class="comment preview">
25         <img class="avatar" src="{% gravatar_url form.email.value 64 %}" alt="Avatar"/>
26         <div class="comment-data">
27         <div class="comment-author">{{ form.name.value }}</div>
28         </div>
29         <div class="body">{{ comment|textile_restricted_pl }}</div>
30         <div style="clear: both"></div>
31     </div>
32
33     {% include "comments/form.html" %}
34
35     </div>
36 {% endif %}
37 </div>
38 </div>
39
40 {% endblock %}