Add in-line ban capabilities
Anyone with the ability to create bans can now do so via the drop down menu on all posts. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
<script src="{% static 'board/jquery.js' %}"></script>
|
||||
<script src="{% static 'board/winbox.bundle.js' %}"></script>
|
||||
<script src="{% static 'board/post.js' %}"></script>
|
||||
{% if perms.board.create_ban %}
|
||||
<script src="{% static 'board/ban_menu.js' %}"></script>
|
||||
{% endif %}
|
||||
{% block extrajs %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
{% load post_body %}
|
||||
{% load l10n %}
|
||||
<div id="p{{post.id}}" data-report-url="{% url 'board:report_form' board.url post.id %}">
|
||||
<div
|
||||
id="p{{post.id}}"
|
||||
data-report-url="{% url 'board:report_form' board.url post.id %}"
|
||||
{% if perms.board.create_ban %}
|
||||
data-ban-url="{% url 'board:ban_create' board.url post.id %}"
|
||||
{% endif %}
|
||||
>
|
||||
{# Image #}
|
||||
{% if post.thumbnail %}
|
||||
{# Image info #}
|
||||
|
||||
Reference in New Issue
Block a user