2022-10-15 13:32:57 +00:00
|
|
|
<!doctype html>
|
2022-12-04 09:12:34 +00:00
|
|
|
<html lang="{{ time_lang }}">
|
2022-10-15 13:32:57 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<title>{{ tr(l=l,k="title")|safe }}</title>
|
2022-10-15 13:32:57 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-10-15 15:32:35 +00:00
|
|
|
{% if comments_pending %}
|
2022-10-15 13:32:57 +00:00
|
|
|
<div id="comments_pending">
|
|
|
|
{% for comment in comments_pending %}
|
2022-10-22 15:56:24 +00:00
|
|
|
<div class="comment{% if comment.needs_approval %} comment_pending{% endif %}" id="comment-{{ comment.id | safe }}">
|
2022-10-15 13:32:57 +00:00
|
|
|
<span class="comment-author">{{ comment.author }}</span>
|
2022-12-04 14:45:52 +00:00
|
|
|
{% if comment.addr %}
|
|
|
|
<span class="comment-addr">{{ comment.addr }}</span>
|
|
|
|
{% endif %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<span class="comment-date">{{ comment.post_time | date(format="%F %R", locale=time_lang) }}</span>
|
2022-10-22 15:56:24 +00:00
|
|
|
{% if comment.editable %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<a href="?edit={{ comment.id | safe }}#edit_comment-form">{{ tr(l=l,k="admin-comment-edit")|safe }}</a>
|
2022-10-22 15:56:24 +00:00
|
|
|
{% endif %}
|
2022-10-15 13:32:57 +00:00
|
|
|
{% if admin and comment.needs_approval %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<a href="?approve={{ comment.id | safe }}">{{ tr(l=l,k="admin-comment-approve")|safe }}</a>
|
2022-10-15 13:32:57 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if admin %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<a href="?remove={{ comment.id | safe }}">{{ tr(l=l,k="admin-comment-remove")|safe }}</a>
|
2022-10-15 13:32:57 +00:00
|
|
|
{% endif %}
|
|
|
|
<p class="comment-text">{{ comment.text }}</p>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2022-10-15 15:32:35 +00:00
|
|
|
{% endif %}
|
2022-10-15 13:32:57 +00:00
|
|
|
<div id="comments">
|
|
|
|
{% for comment in comments %}
|
2022-10-22 15:56:24 +00:00
|
|
|
<div class="comment{% if comment.needs_approval %} comment_pending{% endif %}" id="comment-{{ comment.id | safe }}">
|
2022-10-15 13:32:57 +00:00
|
|
|
<span class="comment-author">{{ comment.author }}</span>
|
2022-12-04 09:12:34 +00:00
|
|
|
<span class="comment-date">{{ comment.post_time | date(format="%F %R", locale=time_lang) }}</span>
|
2022-10-22 15:56:24 +00:00
|
|
|
{% if comment.editable %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<a href="?edit={{ comment.id | safe }}#edit_comment-form">{{ tr(l=l,k="admin-comment-edit")|safe }}</a>
|
2022-10-22 15:56:24 +00:00
|
|
|
{% endif %}
|
2022-10-15 13:32:57 +00:00
|
|
|
{% if admin and comment.needs_approval %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<a href="?approve={{ comment.id | safe }}">{{ tr(l=l,k="admin-comment-approve")|safe }}</a>
|
2022-10-15 13:32:57 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if admin %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<a href="?remove={{ comment.id | safe }}">{{ tr(l=l,k="admin-comment-remove")|safe }}</a>
|
2022-10-15 13:32:57 +00:00
|
|
|
{% endif %}
|
|
|
|
<p class="comment-text">{{ comment.text }}</p>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2022-10-20 18:17:49 +00:00
|
|
|
<form id="new_comment-form" action="#new_comment-form" method="post">
|
|
|
|
{% if new_comment_errors %}
|
2022-12-04 17:06:29 +00:00
|
|
|
<p>{{ tr(l=l,k="error-list",nb_errors=new_comment_errors|length)|safe }}</p>
|
2022-10-20 18:17:49 +00:00
|
|
|
<ul id="new_comment-errors" class="errors">
|
|
|
|
{% for error in new_comment_errors %}
|
|
|
|
<li class="error">{{ error | safe }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2022-12-04 09:12:34 +00:00
|
|
|
<label for="new_comment-author">{{ tr(l=l,k="comment_form-author")|safe }}</label>
|
2022-10-22 15:56:24 +00:00
|
|
|
<input type="text" id="new_comment-author" name="author" maxlength="{{ config.comment_author_max_len | safe }}"{% if new_comment_author %} value="{{ new_comment_author }}"{% endif %}/><br/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<label for="new_comment-email">{{ tr(l=l,k="comment_form-email")|safe }}</label>
|
2022-10-22 15:56:24 +00:00
|
|
|
<input type="email" id="new_comment-email" name="email" maxlength="{{ config.comment_email_max_len | safe }}"{% if new_comment_email %} value="{{ new_comment_email }}"{% endif %}/><br/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<label for="new_comment-text">{{ tr(l=l,k="comment_form-text")|safe }}</label><br/>
|
2022-10-22 15:56:24 +00:00
|
|
|
<textarea id="new_comment-text" name="text" maxlength="{{ config.comment_text_max_len | safe }}">{% if new_comment_text %}{{ new_comment_text }}{% endif %}</textarea><br/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<button type="submit" name="a" value="new_comment">{{ tr(l=l,k="comment_form-new_button")|safe }}</button>
|
2022-10-15 13:32:57 +00:00
|
|
|
</form>
|
2022-10-22 15:56:24 +00:00
|
|
|
{% if edit_comment %}
|
|
|
|
<form id="edit_comment-form" action="#edit_comment-form" method="post">
|
|
|
|
{% if edit_comment_errors %}
|
2022-12-04 17:06:29 +00:00
|
|
|
<p>{{ tr(l=l,k="error-list",nb_errors=edit_comment_errors|length)|safe }}</p>
|
2022-10-22 15:56:24 +00:00
|
|
|
<ul id="edit_comment-errors" class="errors">
|
|
|
|
{% for error in edit_comment_errors %}
|
|
|
|
<li class="error">{{ error | safe }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
<input type="hidden" name="id" value="{{ edit_comment | safe }}" autocomplete="off"/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<label for="edit_comment-author">{{ tr(l=l,k="comment_form-author")|safe }}</label>
|
2022-10-22 15:56:24 +00:00
|
|
|
<input type="text" id="edit_comment-author" name="author" maxlength="{{ config.comment_author_max_len | safe }}"{% if edit_comment_author %} value="{{ edit_comment_author }}"{% endif %}/><br/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<label for="edit_comment-email">{{ tr(l=l,k="comment_form-email")|safe }}</label>
|
2022-10-22 15:56:24 +00:00
|
|
|
<input type="email" id="edit_comment-email" name="email" maxlength="{{ config.comment_email_max_len | safe }}"{% if edit_comment_email %} value="{{ edit_comment_email }}"{% endif %}/><br/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<label for="edit_comment-text">{{ tr(l=l,k="comment_form-text")|safe }}</label><br/>
|
2022-10-22 15:56:24 +00:00
|
|
|
<textarea id="edit_comment-text" name="text" maxlength="{{ config.comment_text_max_len | safe }}">{% if edit_comment_text %}{{ edit_comment_text }}{% endif %}</textarea><br/>
|
2022-12-04 09:12:34 +00:00
|
|
|
<button type="submit" name="a" value="edit_comment">{{ tr(l=l,k="comment_form-edit_button")|safe }}</button>
|
2022-10-22 15:56:24 +00:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
2022-10-15 13:32:57 +00:00
|
|
|
</body>
|
|
|
|
</html>
|