From 7a4f561e851fdc7246d804c3abb6748b8a4199a6 Mon Sep 17 00:00:00 2001 From: gnowgi Date: Thu, 15 Mar 2012 16:19:20 +0530 Subject: master trunk of gnowsys-studio --- .../templates/comments/comment_authors_email.txt | 6 ++++ .../comments/comment_notification_email.txt | 14 ++++++++ gstudio/templates/comments/comment_reply_email.txt | 6 ++++ .../templates/comments/gstudio/nodetype/form.html | 22 +++++++++++++ .../comments/gstudio/nodetype/posted.html | 13 ++++++++ .../comments/gstudio_nodetype_preview.html | 37 ++++++++++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 gstudio/templates/comments/comment_authors_email.txt create mode 100644 gstudio/templates/comments/comment_notification_email.txt create mode 100644 gstudio/templates/comments/comment_reply_email.txt create mode 100644 gstudio/templates/comments/gstudio/nodetype/form.html create mode 100644 gstudio/templates/comments/gstudio/nodetype/posted.html create mode 100644 gstudio/templates/comments/gstudio_nodetype_preview.html (limited to 'gstudio/templates/comments') diff --git a/gstudio/templates/comments/comment_authors_email.txt b/gstudio/templates/comments/comment_authors_email.txt new file mode 100644 index 00000000..e32c876b --- /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 00000000..996166b6 --- /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 00000000..e32c876b --- /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 00000000..8d5e27d4 --- /dev/null +++ b/gstudio/templates/comments/gstudio/nodetype/form.html @@ -0,0 +1,22 @@ +{% load comments i18n %} + +
+ {% csrf_token %} +
+ + {% trans "Post your comment" %} + {% for field in form %} + {% if field.is_hidden %}{{ field }}{% else %} +
+
diff --git a/gstudio/templates/comments/gstudio/nodetype/posted.html b/gstudio/templates/comments/gstudio/nodetype/posted.html new file mode 100644 index 00000000..f54134fa --- /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 %} +

{% trans "Thanks for your comment" %}

+

+ + {% trans "Return to nodetype list" %} + +

+{% endblock %} diff --git a/gstudio/templates/comments/gstudio_nodetype_preview.html b/gstudio/templates/comments/gstudio_nodetype_preview.html new file mode 100644 index 00000000..d360568b --- /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 %} +

+ {% blocktrans count form.errors|length as errors %}Please correct following error.{% plural %}Please correct following errors.{% endblocktrans %} +

+ {% else %} +

{% trans "Preview of the comment" %}

+
    +
  1. +
    + form.cleaned_data.name +
    +
    +
    + {% if form.cleaned_data.url %} + {{ form.cleaned_data.name }} + {% else %} + {{ form.cleaned_data.name }} + {% endif %} + {% trans "on" %} {% now "m/d/Y P" %} +
    +
    + {{ comment|linebreaks }} +
    +
    +
  2. +
+ {% endif %} +
+ {% include "comments/gstudio/nodetype/form.html" %} +
+{% endblock %} -- cgit v1.2.3-70-g09d2