summaryrefslogtreecommitdiff
path: root/objectapp/templates/comments/objectapp_gbobject_preview.html
blob: 47eaeed058b94f017f0fd36514886bf780eeb8b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends "objectapp/base.html" %}
{% load i18n objectapp_tags comments %}

{% block title %}{% trans "Comment preview" %}{% endblock %}

{% block content %}
  {% if form.errors %}
  <h2>
    {% blocktrans count form.errors|length as errors %}Please correct following error.{% plural %}Please correct following errors.{% endblocktrans %}
  </h2>
  {% else %}
  <h2>{% trans "Preview of the comment" %}</h2>
  <ol id="comment-list" class="span-15 last">
    <li id="comment_preview" class="comment vcard {% cycle box1,box2 %} span-15 last">
      <div class="span-2">
	<img src="{% get_gravatar form.cleaned_data.email 60 "G" %}" class="gravatar photo" alt="form.cleaned_data.name" />
      </div>
      <div class="comment-body span-13 last">
	<div class="comment-author span-13 last">
	  {% if form.cleaned_data.url %}
	  <a href="{{ form.cleaned_data.url }}" class="fn url">{{ form.cleaned_data.name }}</a>
	  {% else %}
	  {{ form.cleaned_data.name }}
	  {% endif %}
	  {% trans "on" %} {% now "m/d/Y P" %}
	</div>
	<div class="span-13 last">
	  {{ comment|linebreaks }}
	</div>
      </div>
    </li>
  </ol>
  {% endif %}
  <div class="commentForm span-16 last">
    {% include "comments/objectapp/gbobject/form.html" %}
  </div>
{% endblock %}