summaryrefslogtreecommitdiff
path: root/app/lib/django_comments/templates
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-09-26 17:49:20 -0600
committerluxagraf <sng@luxagraf.net>2017-09-26 17:49:20 -0600
commite9eb2c612156894e87b9fa6584c1f8d05f932fe7 (patch)
treedc9ee22c618eade87186086d1b09b82bd54ffcbe /app/lib/django_comments/templates
parenta5f1c0580091f21fa4fd8817b41c55fa2ff6d0dc (diff)
updated comments app to work with 1.11
Diffstat (limited to 'app/lib/django_comments/templates')
-rw-r--r--app/lib/django_comments/templates/comments/400-debug.html116
-rw-r--r--app/lib/django_comments/templates/comments/approve.html16
-rw-r--r--app/lib/django_comments/templates/comments/approved.html8
-rw-r--r--app/lib/django_comments/templates/comments/base.html10
-rw-r--r--app/lib/django_comments/templates/comments/delete.html16
-rw-r--r--app/lib/django_comments/templates/comments/deleted.html8
-rw-r--r--app/lib/django_comments/templates/comments/flag.html17
-rw-r--r--app/lib/django_comments/templates/comments/flagged.html8
-rw-r--r--app/lib/django_comments/templates/comments/form.html21
-rw-r--r--app/lib/django_comments/templates/comments/list.html10
-rw-r--r--app/lib/django_comments/templates/comments/posted.html8
-rw-r--r--app/lib/django_comments/templates/comments/preview.html40
12 files changed, 278 insertions, 0 deletions
diff --git a/app/lib/django_comments/templates/comments/400-debug.html b/app/lib/django_comments/templates/comments/400-debug.html
new file mode 100644
index 0000000..af74676
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/400-debug.html
@@ -0,0 +1,116 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+ <title>Comment post not allowed (400)</title>
+ <meta name="robots" content="NONE,NOARCHIVE"/>
+ <style type="text/css">
+ <
+ !
+ [CDATA[
+ html * {
+ padding: 0;
+ margin: 0;
+ }
+
+ body * {
+ padding: 10px 20px;
+ }
+
+ body * * {
+ padding: 0;
+ }
+
+ body {
+ font: small sans-serif;
+ background: #eee;
+ }
+
+ body > div {
+ border-bottom: 1px solid #ddd;
+ }
+
+ h1 {
+ font-weight: normal;
+ margin-bottom: .4em;
+ }
+
+ h1 span {
+ font-size: 60%;
+ color: #666;
+ font-weight: normal;
+ }
+
+ table {
+ border: none;
+ border-collapse: collapse;
+ width: 100%;
+ }
+
+ td, th {
+ vertical-align: top;
+ padding: 2px 3px;
+ }
+
+ th {
+ width: 12em;
+ text-align: right;
+ color: #666;
+ padding-right: .5em;
+ }
+
+ #info {
+ background: #f6f6f6;
+ }
+
+ #info ol {
+ margin: 0.5em 4em;
+ }
+
+ #info ol li {
+ font-family: monospace;
+ }
+
+ #summary {
+ background: #ffc;
+ }
+
+ #explanation {
+ background: #eee;
+ border-bottom: 0px none;
+ }
+
+ ]
+ ]
+ >
+ </style>
+</head>
+<body>
+<div id="summary">
+ <h1>Comment post not allowed <span>(400)</span></h1>
+ <table class="meta">
+ <tr>
+ <th>Why:</th>
+ <td>{{ why }}</td>
+ </tr>
+ </table>
+</div>
+<div id="info">
+ <p>
+ The comment you tried to post to this view wasn't saved because something
+ tampered with the security information in the comment form. The message
+ above should explain the problem, or you can check the <a
+ href="http://docs.djangoproject.com/en/dev/ref/contrib/comments/">comment
+ documentation</a> for more help.
+ </p>
+</div>
+
+<div id="explanation">
+ <p>
+ You're seeing this error because you have <code>DEBUG = True</code> in
+ your Django settings file. Change that to <code>False</code>, and Django
+ will display a standard 400 error page.
+ </p>
+</div>
+</body>
+</html>
diff --git a/app/lib/django_comments/templates/comments/approve.html b/app/lib/django_comments/templates/comments/approve.html
new file mode 100644
index 0000000..85b2ba1
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/approve.html
@@ -0,0 +1,16 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Approve a comment" %}{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Really make this comment public?" %}</h1>
+ <blockquote>{{ comment|linebreaks }}</blockquote>
+ <form action="." method="post">{% csrf_token %}
+ {% if next %}
+ <div><input type="hidden" name="next" value="{{ next }}" id="next"/></div>{% endif %}
+ <p class="submit">
+ <input type="submit" name="submit" value="{% trans "Approve" %}"/> or <a href="{{ comment.get_absolute_url }}">cancel</a>
+ </p>
+ </form>
+{% endblock %}
diff --git a/app/lib/django_comments/templates/comments/approved.html b/app/lib/django_comments/templates/comments/approved.html
new file mode 100644
index 0000000..d4ba245
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/approved.html
@@ -0,0 +1,8 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Thanks for approving" %}.{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Thanks for taking the time to improve the quality of discussion on our site" %}.</h1>
+{% endblock %}
diff --git a/app/lib/django_comments/templates/comments/base.html b/app/lib/django_comments/templates/comments/base.html
new file mode 100644
index 0000000..540c25c
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/base.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>{% block title %}{% endblock %}</title>
+</head>
+<body>
+{% block content %}{% endblock %}
+</body>
+</html>
diff --git a/app/lib/django_comments/templates/comments/delete.html b/app/lib/django_comments/templates/comments/delete.html
new file mode 100644
index 0000000..042442c
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/delete.html
@@ -0,0 +1,16 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Remove a comment" %}{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Really remove this comment?" %}</h1>
+ <blockquote>{{ comment|linebreaks }}</blockquote>
+ <form action="." method="post">{% csrf_token %}
+ {% if next %}
+ <div><input type="hidden" name="next" value="{{ next }}" id="next"/></div>{% endif %}
+ <p class="submit">
+ <input type="submit" name="submit" value="{% trans "Remove" %}"/> or <a href="{{ comment.get_absolute_url }}">cancel</a>
+ </p>
+ </form>
+{% endblock %}
diff --git a/app/lib/django_comments/templates/comments/deleted.html b/app/lib/django_comments/templates/comments/deleted.html
new file mode 100644
index 0000000..e608481
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/deleted.html
@@ -0,0 +1,8 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Thanks for removing" %}.{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Thanks for taking the time to improve the quality of discussion on our site" %}.</h1>
+{% endblock %}
diff --git a/app/lib/django_comments/templates/comments/flag.html b/app/lib/django_comments/templates/comments/flag.html
new file mode 100644
index 0000000..c5fe743
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/flag.html
@@ -0,0 +1,17 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Flag this comment" %}{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Really flag this comment?" %}</h1>
+ <blockquote>{{ comment|linebreaks }}</blockquote>
+ <form action="." method="post">{% csrf_token %}
+ {% if next %}
+ <div><input type="hidden" name="next" value="{{ next }}" id="next"/></div>{% endif %}
+ <p class="submit">
+ <input type="submit" name="submit" value="{% trans "Flag" %}"/> or <a
+ href="{{ comment.get_absolute_url }}">cancel</a>
+ </p>
+ </form>
+{% endblock %}
diff --git a/app/lib/django_comments/templates/comments/flagged.html b/app/lib/django_comments/templates/comments/flagged.html
new file mode 100644
index 0000000..e558019
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/flagged.html
@@ -0,0 +1,8 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Thanks for flagging" %}.{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Thanks for taking the time to improve the quality of discussion on our site" %}.</h1>
+{% endblock %}
diff --git a/app/lib/django_comments/templates/comments/form.html b/app/lib/django_comments/templates/comments/form.html
new file mode 100644
index 0000000..858d5eb
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/form.html
@@ -0,0 +1,21 @@
+{% load comments i18n %}
+<form action="{% comment_form_target %}" method="post">{% csrf_token %}
+ {% if next %}
+ <div><input type="hidden" name="next" value="{{ next }}"/></div>{% endif %}
+ {% for field in form %}
+ {% if field.is_hidden %}
+ <div>{{ field }}</div>
+ {% else %}
+ {% if field.errors %}{{ field.errors }}{% endif %}
+ <p
+ {% if field.errors %} class="error"{% endif %}
+ {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
+ {{ field.label_tag }} {{ field }}
+ </p>
+ {% endif %}
+ {% endfor %}
+ <p class="submit">
+ <input type="submit" name="post" class="submit-post" value="{% trans "Post" %}"/>
+ <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}"/>
+ </p>
+</form>
diff --git a/app/lib/django_comments/templates/comments/list.html b/app/lib/django_comments/templates/comments/list.html
new file mode 100644
index 0000000..1246adf
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/list.html
@@ -0,0 +1,10 @@
+<dl id="comments">
+ {% for comment in comment_list %}
+ <dt id="c{{ comment.id }}">
+ {{ comment.submit_date }} - {{ comment.name }}
+ </dt>
+ <dd>
+ <p>{{ comment.comment }}</p>
+ </dd>
+ {% endfor %}
+</dl>
diff --git a/app/lib/django_comments/templates/comments/posted.html b/app/lib/django_comments/templates/comments/posted.html
new file mode 100644
index 0000000..76f7f6d
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/posted.html
@@ -0,0 +1,8 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Thanks for commenting" %}.{% endblock %}
+
+{% block content %}
+ <h1>{% trans "Thank you for your comment" %}.</h1>
+{% endblock %}
diff --git a/app/lib/django_comments/templates/comments/preview.html b/app/lib/django_comments/templates/comments/preview.html
new file mode 100644
index 0000000..e335466
--- /dev/null
+++ b/app/lib/django_comments/templates/comments/preview.html
@@ -0,0 +1,40 @@
+{% extends "comments/base.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Preview your comment" %}{% endblock %}
+
+{% block content %}
+ {% load comments %}
+ <form action="{% comment_form_target %}" method="post">{% csrf_token %}
+ {% if next %}
+ <div><input type="hidden" name="next" value="{{ next }}"/></div>{% endif %}
+ {% if form.errors %}
+ <h1>{% blocktrans count counter=form.errors|length %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1>
+ {% else %}
+ <h1>{% trans "Preview your comment" %}</h1>
+ <blockquote>{{ comment|linebreaks }}</blockquote>
+ <p>
+ {% trans "and" %} <input id="submit" type="submit" name="submit" class="submit-post"
+ value="{% trans "Post your comment" %}"/>
+ {# Translators: This string follows the 'Post your comment' submit button. #}
+ {% trans "or make changes" %}:
+ </p>
+ {% endif %}
+ {% for field in form %}
+ {% if field.is_hidden %}
+ <div>{{ field }}</div>
+ {% else %}
+ {% if field.errors %}{{ field.errors }}{% endif %}
+ <p
+ {% if field.errors %} class="error"{% endif %}
+ {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
+ {{ field.label_tag }} {{ field }}
+ </p>
+ {% 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>
+ </form>
+{% endblock %}