2022-01-21 00:30:56 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ _("Report") }}
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-07-20 00:29:56 +02:00
|
|
|
{% block headextra %}
|
|
|
|
{% if noindex %}
|
|
|
|
<meta name="robots" content="noindex">
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-01-21 00:30:56 +01:00
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<h1>{{ _("Report") }}</h1>
|
|
|
|
|
2022-06-13 18:10:07 +02:00
|
|
|
{% if not form %}
|
|
|
|
|
|
|
|
<p>
|
|
|
|
{{ _("Due to spam, we no longer accept reports from anonymous users on this form.") }}
|
|
|
|
{{ _("Please sign in or contact the admin in another way") }}
|
|
|
|
</p>
|
|
|
|
<p>
|
2022-06-13 18:12:30 +02:00
|
|
|
<a href="{{ url_for('users.login') }}" class="btn btn-primary mr-2">Login</a>
|
2022-06-13 18:10:07 +02:00
|
|
|
<a href="https://rubenwardy.com/contact/" class="btn btn-secondary">Contact the admin</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
|
|
|
|
2022-01-21 00:30:56 +01:00
|
|
|
<form method="POST" action="" enctype="multipart/form-data">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
{% if url %}
|
|
|
|
<p>
|
|
|
|
URL: <code>{{ url }}</code>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
{{ render_field(form.message, hint=_("What are you reporting? Why are you reporting it?")) }}
|
|
|
|
{{ render_submit_field(form.submit) }}
|
|
|
|
|
|
|
|
<p class="mt-5 text-muted">
|
2022-01-21 03:53:43 +01:00
|
|
|
{{ _("Reports will be shared with ContentDB staff.") }}
|
2022-01-21 00:30:56 +01:00
|
|
|
{% if is_anon %}
|
|
|
|
{{ _("Only the admin will be able to see who made the report.") }}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
2022-01-26 19:16:47 +01:00
|
|
|
<p class="alert alert-info">
|
|
|
|
{{ _("Found a bug? Please report on the package's issue tracker or in a thread instead.") }}
|
|
|
|
</p>
|
2022-01-21 00:30:56 +01:00
|
|
|
</form>
|
|
|
|
|
2022-06-13 18:10:07 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2022-01-21 00:30:56 +01:00
|
|
|
{% endblock %}
|