diff --git a/bookwyrm/templates/moderation/report.html b/bookwyrm/templates/moderation/report.html index ce0a0b3a..32fdf6d7 100644 --- a/bookwyrm/templates/moderation/report.html +++ b/bookwyrm/templates/moderation/report.html @@ -16,7 +16,7 @@

{% trans "Actions" %}

- + {% trans "Send direct message" %}
diff --git a/bookwyrm/templates/snippets/status/status_options.html b/bookwyrm/templates/snippets/status/status_options.html index 3c710055..6f0ca2e6 100644 --- a/bookwyrm/templates/snippets/status/status_options.html +++ b/bookwyrm/templates/snippets/status/status_options.html @@ -22,7 +22,7 @@ {% else %} {# things you can do to other people's statuses #}
  • - {% trans "Send direct message" %} + {% trans "Send direct message" %}
  • {% include 'snippets/report_button.html' with user=status.user status=status %} diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 551be1e3..0ad464f4 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -75,10 +75,13 @@ urlpatterns = [ re_path(r"^notifications/?$", views.Notifications.as_view()), # feeds re_path(r"^(?Phome|local|federated)/?$", views.Feed.as_view()), - re_path(r"^direct-messages/?$", views.DirectMessage.as_view()), + re_path( + r"^direct-messages/?$", views.DirectMessage.as_view(), name="direct-messages" + ), re_path( r"^direct-messages/(?P%s)?$" % regex.username, views.DirectMessage.as_view(), + name="direct-messages-user", ), # search re_path(r"^search/?$", views.Search.as_view()),