|
@@ -14,6 +14,9 @@
|
|
|
|
|
|
{% block table-header %}
|
|
|
<th>{% trans "Warning level" %}</th>
|
|
|
+<th style="width: 240px">{% trans "Length" %}</th>
|
|
|
+<th style="width: 200px;">{% trans "Replying" %}</th>
|
|
|
+<th style="width: 200px;">{% trans "Starting threads" %}</th>
|
|
|
{% for action in extra_actions %}
|
|
|
<th style="width: 1%;"> </th>
|
|
|
{% endfor %}
|
|
@@ -28,6 +31,43 @@
|
|
|
<td class="lead">
|
|
|
#{{ forloop.counter }} {{ item.name }}
|
|
|
</td>
|
|
|
+<td>{{ item.length }}</td>
|
|
|
+<td>
|
|
|
+ {% if item.restricts_posting_replies == 0 %}
|
|
|
+ <div class="text-success">
|
|
|
+ <span class="fa fa-check-circle"></span>
|
|
|
+ {% trans "Not restricted" %}
|
|
|
+ </div>
|
|
|
+ {% elif item.restricts_posting_replies == 1 %}
|
|
|
+ <div class="text-warning">
|
|
|
+ <span class="fa fa-exclamation-circle"></span>
|
|
|
+ {% trans "Moderated" %}
|
|
|
+ </div>
|
|
|
+ {% else %}
|
|
|
+ <div class="text-danger">
|
|
|
+ <span class="fa fa-times-circle"></span>
|
|
|
+ {% trans "Forbidden" %}
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
+</td>
|
|
|
+<td>
|
|
|
+ {% if item.restricts_posting_threads == 0 %}
|
|
|
+ <div class="text-success">
|
|
|
+ <span class="fa fa-check-circle"></span>
|
|
|
+ {% trans "Not restricted" %}
|
|
|
+ </div>
|
|
|
+ {% elif item.restricts_posting_threads == 1 %}
|
|
|
+ <div class="text-warning">
|
|
|
+ <span class="fa fa-exclamation-circle"></span>
|
|
|
+ {% trans "Moderated" %}
|
|
|
+ </div>
|
|
|
+ {% else %}
|
|
|
+ <div class="text-danger">
|
|
|
+ <span class="fa fa-times-circle"></span>
|
|
|
+ {% trans "Forbidden" %}
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
+</td>
|
|
|
{% for action in extra_actions %}
|
|
|
<td class="row-action">
|
|
|
<a href="{% url action.link rank_id=item.id %}" class="btn btn-{% if action.style %}{{ action.style }}{% else %}default{% endif %} tooltip-top" title="{{ action.name }}">
|
|
@@ -36,6 +76,30 @@
|
|
|
</td>
|
|
|
{% endfor %}
|
|
|
<td class="row-action">
|
|
|
+ {% if not forloop.last %}
|
|
|
+ <form action="{% url 'misago:admin:users:warnings:down' warning_id=item.id %}" method="post">
|
|
|
+ <button class="btn btn-default tooltip-top" title="{% trans "Move down" %}">
|
|
|
+ {% csrf_token %}
|
|
|
+ <span class="fa fa-chevron-down"></span>
|
|
|
+ </button>
|
|
|
+ </form>
|
|
|
+ {% else %}
|
|
|
+
|
|
|
+ {% endif %}
|
|
|
+</td>
|
|
|
+<td class="row-action">
|
|
|
+ {% if not forloop.first %}
|
|
|
+ <form action="{% url 'misago:admin:users:warnings:up' warning_id=item.id %}" method="post">
|
|
|
+ <button class="btn btn-default tooltip-top" title="{% trans "Move up" %}">
|
|
|
+ {% csrf_token %}
|
|
|
+ <span class="fa fa-chevron-up"></span>
|
|
|
+ </button>
|
|
|
+ </form>
|
|
|
+ {% else %}
|
|
|
+
|
|
|
+ {% endif %}
|
|
|
+</td>
|
|
|
+<td class="row-action">
|
|
|
<a href="{% url 'misago:admin:users:warnings:edit' warning_id=item.id %}" class="btn btn-primary tooltip-top" title="{% trans "Edit" %}">
|
|
|
<span class="fa fa-pencil"></span>
|
|
|
</a>
|