diff options
Diffstat (limited to 'gstudio/templates/comments')
6 files changed, 98 insertions, 0 deletions
diff --git a/gstudio/templates/comments/comment_authors_email.txt b/gstudio/templates/comments/comment_authors_email.txt new file mode 100644 index 0000000..e32c876 --- /dev/null +++ b/gstudio/templates/comments/comment_authors_email.txt @@ -0,0 +1,6 @@ +{% load i18n %}{% trans "Author" %}: {{ comment.userinfo.name }} {{ comment.userinfo.url }} + +{% trans "Comment" %}: +{{ comment.comment }} + +{% trans "View this comment" %}: {{ protocol }}://{{ site }}{{ content_object.get_absolute_url }}#comment_{{ comment.pk }} diff --git a/gstudio/templates/comments/comment_notification_email.txt b/gstudio/templates/comments/comment_notification_email.txt new file mode 100644 index 0000000..996166b --- /dev/null +++ b/gstudio/templates/comments/comment_notification_email.txt @@ -0,0 +1,14 @@ +{% load i18n %}{% trans "Author" %}: {{ comment.userinfo.name }} {{ comment.userinfo.url }} +{% trans "Email" %}: {{ comment.userinfo.email }} +{% trans "IP" %}: {{ comment.ip_address }} + +{% trans "Comment" %}: +{{ comment.comment }} + +{% trans "View this comment" %}: {{ protocol }}://{{ site }}{{ content_object.get_absolute_url }}#comment_{{ comment.pk }} + +{% trans "Flag this comment" %}: {{ protocol }}://{{ site }}{% url comments-flag comment.pk %} + +{% trans "Delete this comment" %}: {{ protocol }}://{{ site }}{% url comments-delete comment.pk %} + +{% trans "Approve this comment" %}: {{ protocol }}://{{ site }}{% url comments-approve comment.pk %} diff --git a/gstudio/templates/comments/comment_reply_email.txt b/gstudio/templates/comments/comment_reply_email.txt new file mode 100644 index 0000000..e32c876 --- /dev/null +++ b/gstudio/templates/comments/comment_reply_email.txt @@ -0,0 +1,6 @@ +{% load i18n %}{% trans "Author" %}: {{ comment.userinfo.name }} {{ comment.userinfo.url }} + +{% trans "Comment" %}: +{{ comment.comment }} + +{% trans "View this comment" %}: {{ protocol }}://{{ site }}{{ content_object.get_absolute_url }}#comment_{{ comment.pk }} diff --git a/gstudio/templates/comments/gstudio/nodetype/form.html b/gstudio/templates/comments/gstudio/nodetype/form.html new file mode 100644 index 0000000..8d5e27d --- /dev/null +++ b/gstudio/templates/comments/gstudio/nodetype/form.html @@ -0,0 +1,22 @@ +{% load comments i18n %} + +<form action="{% comment_form_target %}" method="post"> + {% csrf_token %} + <fieldset> + <input type="hidden" name="next" value="{% url gstudio_discussion_success %}"/> + <legend>{% trans "Post your comment" %}</legend> + {% for field in form %} + {% if field.is_hidden %}{{ field }}{% else %} + <div{% if field.errors %} class="error"{% endif %}{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}> + {{ field.label_tag }} + {% if field.errors %}{{ field.errors }}{% else %}<br />{% endif %} + {{ field }} + </div> + {% endif %} + {% endfor %} + <p class="submit"> + <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" /> + <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" /> + </p> + </fieldset> +</form> diff --git a/gstudio/templates/comments/gstudio/nodetype/posted.html b/gstudio/templates/comments/gstudio/nodetype/posted.html new file mode 100644 index 0000000..f54134f --- /dev/null +++ b/gstudio/templates/comments/gstudio/nodetype/posted.html @@ -0,0 +1,13 @@ +{% extends "gstudio/base.html" %} +{% load i18n %} + +{% block title %}{% trans "Thanks for your comment" %}{% endblock %} + +{% block content %} +<h2>{% trans "Thanks for your comment" %}</h2> +<p> + <a href="{% url gstudio_nodetype_archive_index %}" title="{% trans "Return to nodetype list" %}"> + {% trans "Return to nodetype list" %} + </a> +</p> +{% endblock %} 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 %} |