diff options
Diffstat (limited to 'design/templates/comments')
-rw-r--r-- | design/templates/comments/base.html | 10 | ||||
-rw-r--r-- | design/templates/comments/comment_notification_email.txt | 3 | ||||
-rw-r--r-- | design/templates/comments/deleted.html | 8 | ||||
-rw-r--r-- | design/templates/comments/flagged.html | 8 | ||||
-rw-r--r-- | design/templates/comments/form.html | 25 | ||||
-rw-r--r-- | design/templates/comments/list.html | 27 | ||||
-rw-r--r-- | design/templates/comments/posted.html | 40 | ||||
-rw-r--r-- | design/templates/comments/preview.html | 47 |
8 files changed, 0 insertions, 168 deletions
diff --git a/design/templates/comments/base.html b/design/templates/comments/base.html deleted file mode 100644 index 9828ff6..0000000 --- a/design/templates/comments/base.html +++ /dev/null @@ -1,10 +0,0 @@ -<!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/design/templates/comments/comment_notification_email.txt b/design/templates/comments/comment_notification_email.txt deleted file mode 100644 index 63f1493..0000000 --- a/design/templates/comments/comment_notification_email.txt +++ /dev/null @@ -1,3 +0,0 @@ -A comment has been posted on {{ content_object }}. -The comment reads as follows: -{{ comment }} diff --git a/design/templates/comments/deleted.html b/design/templates/comments/deleted.html deleted file mode 100644 index e608481..0000000 --- a/design/templates/comments/deleted.html +++ /dev/null @@ -1,8 +0,0 @@ -{% 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/design/templates/comments/flagged.html b/design/templates/comments/flagged.html deleted file mode 100644 index e558019..0000000 --- a/design/templates/comments/flagged.html +++ /dev/null @@ -1,8 +0,0 @@ -{% 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/design/templates/comments/form.html b/design/templates/comments/form.html deleted file mode 100644 index b70862f..0000000 --- a/design/templates/comments/form.html +++ /dev/null @@ -1,25 +0,0 @@ -{% load comments i18n %} -<div class="comment-form-header"> - <p class="hed">Thoughts?</p> - <p class="subhed">Please leave a reply:</p> -</div> -<form action="{% comment_form_target %}" method="post" class="comment-form"> - {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %} -<input type="hidden" name="rder" value="{{ form.instance.content_object.get_absolute_url }}" /> - {% for field in form %} - {% if field.is_hidden %} - {{ field }} - {% else %} - <fieldset class="{% if field.errors %} error{% endif %} {% ifequal field.name "honeypot" %} honeypot"{% endifequal %}"> - {{ field.label_tag }} - {%ifequal field.name "comment"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endifequal%} - </fieldset> - {% endif %} - {% endfor %} - <div class="submit"> - <input type="submit" name="preview" class="submit-preview btn" value="{% trans "Preview" %}" /> - <input type="submit" name="post" class="submit-post btn" value="{% trans "Post" %}" /> - </div> -</form> -<p style="font-size: 75%;"><strong>All comments are moderated</strong>, so you won’t see it right away. And please remember Kurt Vonnegut's rule: “god damn it, you’ve got to be kind.” You can use Markdown or HTML to format your comments. The allowed tags are <code><b>, <i>, <em>, <strong>, <a></code>. To create a new paragraph hit return twice. </p> - diff --git a/design/templates/comments/list.html b/design/templates/comments/list.html deleted file mode 100644 index 7c43a9a..0000000 --- a/design/templates/comments/list.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load gravatar_local %} -{% load typogrify_tags %} -{% load markdown%} -{% load bleach_tags %} -{% load nofollow %} -{% load comments %} - <div> - {% for comment in comment_list %} - <div id="comment-{{ comment.id }}" class="comment-card-wrapper"> - <div class="comment-card-hed"> - <noscript class="datahashloader" data-hash="{% if comment.user_email == "sng@luxagraf.net" %}d64f4854965b2b1c3ecafee4b2a66fac{%else%}{%if comment.user_email|has_grav %}{%gravatar_hash comment.user_email %}{%else%}default{%endif%}{%endif%}"> - <img class="comment-card-image" {% if comment.user_email == "sng@luxagraf.net" %}src="https://images.luxagraf.net/gravcache/d64f4854965b2b1c3ecafee4b2a66fac.jpg" {%else%} {%if comment.user_email|has_grav %} src="https://images.luxagraf.net/gravcache/{%gravatar_hash comment.email %}.jpg"{%else%}src="https://images.luxagraf.net/gravcache/default.jpg"{%endif%}{%endif%} alt="gravatar icon for {{comment.name}}" /> - </noscript> - <span class="comment-card-commenter">{%if comment.url %}<a href="{{comment.url}}" rel="nofollow" target="_blank">{{comment.name}}</a>{% else %}{{comment.name}}{%endif%}</span> - <span class="card-smcaps">{{comment.submit_date|date:"F d, Y"}} at {{comment.submit_date|date:"g:i a"}}</span> - </div> - - <div class="comment-card-body"> - {% if comment.user_email == "sng@luxagraf.net" %} - {{comment.comment|markdown|safe|smartypants}} - {%else%} - {{comment.comment|markdown|bleach|nofollow|safe|smartypants}} - {%endif%} - </div> - </div> - {% endfor %} - </div> diff --git a/design/templates/comments/posted.html b/design/templates/comments/posted.html deleted file mode 100644 index de9aa9e..0000000 --- a/design/templates/comments/posted.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} -{%block htmlclass%}class="detail"{%endblock%} -{% block js %} -<script type="text/javascript"> - -(function () { - var timeLeft = 5, - cinterval; - - var timeDec = function (){ - timeLeft--; - document.getElementById('countdown').innerHTML = timeLeft; - if(timeLeft === 0){ - clearInterval(cinterval); - {% if not comment.content_object.get_absolute_url %} - window.location="/"; - {% else%} - window.location="{{comment.content_object.get_absolute_url}}";{%endif%} - } - }; - - cinterval = setInterval(timeDec, 1000); -})(); - -</script> -{% endblock %} -{% block primary %} -<main> - <article class="content"> - <header class="post-header"> - <h1 class="post-title">Thank you for your comment</h1> - </header> - <div class="post-article"> - <p>Unless you've previously been approved a few times, your comment will be moderated. If we're on the road this can sometimes take a few days, so please be patient.</p> - <p><a href="{{comment.content_object.get_absolute_url}}">Return to the page you came from</a> Redirecting in <span id="countdown">5</span></p> - </div> - </article> -</main> -{% endblock %} diff --git a/design/templates/comments/preview.html b/design/templates/comments/preview.html deleted file mode 100644 index 9e27c81..0000000 --- a/design/templates/comments/preview.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{%block htmlclass%} -class="detail"{%endblock%} - - -{% block primary %} -<main> - <article class="content"> - <header class="post-header"> - <h1 class="post-title">{% trans "Preview your comment" %}</h1> - </header> - - {% load comments %} -<div class="comment-form-wrapper"> -<div class="comment-form-header"> - <form action="{% comment_form_target %}" method="post" class="comment--form" style="margin-left: 0;">{% csrf_token %} - {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %} - {% if form.errors %} - <h3>{% if form.errors|length == 1 %}{% trans "Please correct the error below" %}{% else %}{% trans "Please correct the errors below" %}{% endif %}</h3> - {% else %} - <blockquote>{{ comment|linebreaks }}</blockquote> - <p> - <input type="submit" name="submit" class="submit-post btn" value="{% trans "Post your comment" %}" id="submit" /> <h3>{% trans "Or make changes" %}:</h3> - </p> - {% endif %} - {% for field in form %} - {% if field.is_hidden %} - {{ field }} - {% else %} - <fieldset {% if field.errors %} class="error"{% endif %} {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}> - {{ field.label_tag }} - {%ifequal field.name "comment"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endifequal%} - </fieldset> - {% endif %} - {% endfor %} - <div class="submit"> - <input type="submit" name="post" class="submit-post btn" value="{% trans "Post" %}" /> - <input type="submit" name="preview" class="submit-preview btn" value="{% trans "Preview" %}" /> - </div> - </form> - </div> - </div> - </article> -</main> -{% endblock %} |