mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-02 21:39:23 +00:00
b3a519c082
This table will now track all actions taken on a report, like resolving it, re-opening it, suspending the reported user, et cetera, in addition to comments. When there are multiple admins, this change will make it easier to understand what actions have been taken by whom on a report.
31 lines
985 B
HTML
31 lines
985 B
HTML
{% extends "settings/link_domains/link_table.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block additional_headers %}
|
|
<th>{% trans "Domain" %}</th>
|
|
<th>{% trans "Actions" %}</th>
|
|
{% endblock %}
|
|
|
|
{% block additional_data %}
|
|
<td>
|
|
<a href="{% url 'settings-link-domain' 'pending' %}#{{ link.domain.id }}">
|
|
{{ link.domain.domain }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{% if link.domain.status != "approved" %}
|
|
<form method="POST" action="{% url 'settings-link-domain-status' link.domain.id 'approved' report.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="button is-success is-light">{% trans "Approve domain" %}</button>
|
|
</form>
|
|
{% endif %}
|
|
|
|
{% if link.domain.status != "blocked" %}
|
|
<form method="POST" action="{% url 'settings-link-domain-status' link.domain.id 'blocked' report.id %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="button is-danger is-light">{% trans "Block domain" %}</button>
|
|
</form>
|
|
{% endif %}
|
|
</td>
|
|
{% endblock %}
|