summaryrefslogtreecommitdiff
path: root/templates/post/post_controls.html
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-09-03 23:39:43 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-09-03 23:39:43 +0900
commit6041e3721659d59119181f29f2be1066c45db616 (patch)
treea8d47ea24c37b5dd851d520939e2156cd70f24ac /templates/post/post_controls.html
parent3f908ebfa46741c30df83d37c8d3b60c444f8bf3 (diff)
Add warning without ban, joke capcode support, SC editor support, home link support, table for calender theme / extension, removing boardalias duplicate citations in markup and other features
Diffstat (limited to 'templates/post/post_controls.html')
-rw-r--r--templates/post/post_controls.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/post/post_controls.html b/templates/post/post_controls.html
index eed76702..1b084e27 100644
--- a/templates/post/post_controls.html
+++ b/templates/post/post_controls.html
@@ -1,6 +1,9 @@
{% if mod %}
<span class="controls {% if not post.thread %}op{% endif %}">
+{% if mod|hasPermission(config.mod.warning, board.uri) %}
+ <a title="{% trans %}Warn{% endtrans %}" href="?/{{ board.dir }}warning/{{ post.id }}{% if post.thread %}&amp;thread={{ post.thread }}{% endif %}">{{ config.mod.link_warning }}</a>&nbsp;
+{% endif %}
{% if mod|hasPermission(config.mod.delete, board.uri) %}
<a title="{% trans %}Delete{% endtrans %}" onclick="if (event.which==2) return true;if (confirm('{% trans %}Are you sure you want to delete this?{% endtrans %}')) document.location='?/{{ secure_link(board.dir ~ 'delete/' ~ post.id) }}{% if post.thread %}&amp;thread={{ post.thread }}{% endif %}';return false;" href="?/{{ board.dir }}delete/{{ post.id }}{% if post.thread %}&amp;thread={{ post.thread }}{% endif %}">{{ config.mod.link_delete }}</a>&nbsp;
{% endif %}