2021-04-19 22:19:55 +00:00
|
|
|
{% load i18n %}
|
|
|
|
<div class="block content">
|
|
|
|
<h3>{% trans "Actions" %}</h3>
|
|
|
|
<div class="is-flex">
|
|
|
|
<p class="mr-1">
|
|
|
|
<a class="button" href="{% url 'direct-messages-user' user.username %}">{% trans "Send direct message" %}</a>
|
|
|
|
</p>
|
2021-04-19 22:51:39 +00:00
|
|
|
<form name="suspend" method="post" action="{% url 'settings-report-suspend' user.id %}">
|
2021-04-19 22:19:55 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
{% if user.is_active %}
|
2021-04-19 22:51:39 +00:00
|
|
|
<button type="submit" class="button is-danger is-light">{% trans "Suspend user" %}</button>
|
2021-04-19 22:19:55 +00:00
|
|
|
{% else %}
|
2021-04-19 22:51:39 +00:00
|
|
|
<button class="button">{% trans "Un-suspend user" %}</button>
|
2021-04-19 22:19:55 +00:00
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|