mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Add noindex to report page when given a URL
This commit is contained in:
parent
20411e6f81
commit
bc4e83d76a
@ -64,4 +64,4 @@ def report():
|
|||||||
|
|
||||||
return redirect(url_for("tasks.check", id=task.id, r=url_for("homepage.home")))
|
return redirect(url_for("tasks.check", id=task.id, r=url_for("homepage.home")))
|
||||||
|
|
||||||
return render_template("report/index.html", form=form, url=url, is_anon=is_anon)
|
return render_template("report/index.html", form=form, url=url, is_anon=is_anon, noindex=url is not None)
|
||||||
|
@ -4,6 +4,12 @@
|
|||||||
{{ _("Report") }}
|
{{ _("Report") }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block headextra %}
|
||||||
|
{% if noindex %}
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h1>{{ _("Report") }}</h1>
|
<h1>{{ _("Report") }}</h1>
|
||||||
|
Loading…
Reference in New Issue
Block a user