Make reports
This commit is contained in:
2
bookwyrm/templates/settings/report.html
Normal file
2
bookwyrm/templates/settings/report.html
Normal file
@ -0,0 +1,2 @@
|
||||
{% extends 'settings/admin_layout.html' %}
|
||||
{% load i18n %}
|
@ -2,7 +2,7 @@
|
||||
{% load i18n %}
|
||||
{% block card-header %}
|
||||
<h2 class="title is-4">
|
||||
<a href="{% url settings-report report.id %}">report title</a></h2>
|
||||
<a href="{% url 'settings-report' report.id %}">report title</a></h2>
|
||||
{% endblock %}
|
||||
|
||||
{% block card-content %}
|
||||
@ -11,4 +11,4 @@ about this report
|
||||
|
||||
{% block card-footer %}
|
||||
footer
|
||||
{% endblock
|
||||
{% endblock %}
|
||||
|
7
bookwyrm/templates/snippets/report_button.html
Normal file
7
bookwyrm/templates/snippets/report_button.html
Normal file
@ -0,0 +1,7 @@
|
||||
{% load i18n %}
|
||||
<form name="report" method="post" action="{% url 'report' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="reporter" value="{{ request.user.id }}">
|
||||
<input type="hidden" name="user" value="{{ user.id }}">
|
||||
<button class="button is-danger is-light is-small {{ class }}" type="submit">{% trans "Report" %}</button>
|
||||
</form>
|
@ -25,7 +25,7 @@
|
||||
<a href="/direct-messages/{{ status.user|username }}" class="button is-fullwidth is-small">{% trans "Send direct message" %}</a>
|
||||
</li>
|
||||
<li role="menuitem">
|
||||
<a href="{{ status.local_path }}/report" class="button is-fullwidth is-small">{% trans "Report status" %}</a>
|
||||
{% include 'snippets/report_button.html' with user=status.user class="is-fullwidth" %}
|
||||
</li>
|
||||
<li role="menuitem">
|
||||
{% include 'snippets/block_button.html' with user=status.user class="is-fullwidth" %}
|
||||
|
@ -13,7 +13,7 @@
|
||||
<a href="/direct-messages/{{ user|username }}" class="button is-fullwidth is-small">{% trans "Send direct message" %}</a>
|
||||
</li>
|
||||
<li role="menuitem">
|
||||
<a href="{{ user.local_path }}/report" class="button is-fullwidth is-small">{% trans "Report user" %}</a>
|
||||
{% include 'snippets/report_button.html' with user=status.user class="is-fullwidth" %}
|
||||
</li>
|
||||
<li role="menuitem">
|
||||
{% include 'snippets/block_button.html' with user=user class="is-fullwidth" %}
|
||||
|
Reference in New Issue
Block a user