diff options
Diffstat (limited to 'gstudio/templates/comments/gstudio_nodetype_preview.html')
-rw-r--r-- | gstudio/templates/comments/gstudio_nodetype_preview.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gstudio/templates/comments/gstudio_nodetype_preview.html b/gstudio/templates/comments/gstudio_nodetype_preview.html new file mode 100644 index 0000000..d360568 --- /dev/null +++ b/gstudio/templates/comments/gstudio_nodetype_preview.html @@ -0,0 +1,37 @@ +{% extends "gstudio/base.html" %} +{% load i18n gstudio_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/gstudio/nodetype/form.html" %} + </div> +{% endblock %} |