mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Merge pull request #2365 from bookwyrm-social/url-typo
Small fixes - typo in a url and emails about reports
This commit is contained in:
commit
914479f1c9
4 changed files with 4 additions and 3 deletions
|
@ -48,6 +48,7 @@ def moderation_report_email(report):
|
||||||
if report.user:
|
if report.user:
|
||||||
data["reportee"] = report.user.localname or report.user.username
|
data["reportee"] = report.user.localname or report.user.username
|
||||||
data["report_link"] = report.remote_id
|
data["report_link"] = report.remote_id
|
||||||
|
data["link_domain"] = report.links.exists()
|
||||||
|
|
||||||
for admin in models.User.objects.filter(
|
for admin in models.User.objects.filter(
|
||||||
groups__name__in=["admin", "moderator"]
|
groups__name__in=["admin", "moderator"]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<p>
|
<p>
|
||||||
{% if report_link %}
|
{% if link_domain %}
|
||||||
|
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
@{{ reporter }} has flagged a link domain for moderation.
|
@{{ reporter }} has flagged a link domain for moderation.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if report_link %}
|
{% if link_domain %}
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
@{{ reporter }} has flagged a link domain for moderation.
|
@{{ reporter }} has flagged a link domain for moderation.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
|
@ -297,7 +297,7 @@ urlpatterns = [
|
||||||
name="settings-imports",
|
name="settings-imports",
|
||||||
),
|
),
|
||||||
re_path(
|
re_path(
|
||||||
r"^settings/imports/(?P<import_id>\d+)/complete?$",
|
r"^settings/imports/(?P<import_id>\d+)/complete/?$",
|
||||||
views.ImportList.as_view(),
|
views.ImportList.as_view(),
|
||||||
name="settings-imports-complete",
|
name="settings-imports-complete",
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue