From bb8f589da7d72a6a90c193eb0e1ac3672cc4e76f Mon Sep 17 00:00:00 2001
From: mj2p <41858365+mj2p@users.noreply.github.com>
Date: Wed, 14 Jun 2023 18:15:29 +0100
Subject: [PATCH] Bugfix admin redirect fixes (#587)
---
templates/admin/announcement_edit.html | 2 +-
templates/admin/announcements.html | 4 ++--
templates/admin/federation.html | 4 ++--
templates/admin/federation_edit.html | 2 +-
templates/admin/hashtag_edit.html | 2 +-
templates/admin/hashtags.html | 4 ++--
templates/admin/identities.html | 4 ++--
templates/admin/identity_edit.html | 2 +-
templates/admin/invite_view.html | 2 +-
templates/admin/invites.html | 4 ++--
templates/admin/report_view.html | 2 +-
templates/admin/reports.html | 4 ++--
templates/admin/user_edit.html | 2 +-
templates/admin/users.html | 4 ++--
users/views/admin/announcements.py | 6 +++++-
users/views/admin/federation.py | 1 +
users/views/admin/hashtags.py | 1 +
users/views/admin/identities.py | 1 +
users/views/admin/invites.py | 1 +
users/views/admin/reports.py | 1 +
users/views/admin/users.py | 1 +
21 files changed, 32 insertions(+), 22 deletions(-)
diff --git a/templates/admin/announcement_edit.html b/templates/admin/announcement_edit.html
index 7d60b9a..fead07e 100644
--- a/templates/admin/announcement_edit.html
+++ b/templates/admin/announcement_edit.html
@@ -16,7 +16,7 @@
{% include "forms/_field.html" with field=form.end %}
-
+
|
-
+
{{ announcement.html|truncatewords_html:"10" }}
{% if announcement.service_announcement %}{{ domain.service_domain }}{% endif %}
diff --git a/templates/admin/federation.html b/templates/admin/federation.html
index 44ac896..0e687d9 100644
--- a/templates/admin/federation.html
+++ b/templates/admin/federation.html
@@ -12,11 +12,11 @@
{% for domain in page_obj %}
-
+
|
-
+
{{ domain.domain }}
{{ domain.software }}
|
diff --git a/templates/admin/federation_edit.html b/templates/admin/federation_edit.html
index c32d1cc..a6fc41a 100644
--- a/templates/admin/federation_edit.html
+++ b/templates/admin/federation_edit.html
@@ -15,7 +15,7 @@
{% include "forms/_field.html" with field=form.notes %}
diff --git a/templates/admin/hashtag_edit.html b/templates/admin/hashtag_edit.html
index 1be912f..a7ef983 100644
--- a/templates/admin/hashtag_edit.html
+++ b/templates/admin/hashtag_edit.html
@@ -38,7 +38,7 @@
diff --git a/templates/admin/hashtags.html b/templates/admin/hashtags.html
index 910e527..6101d38 100644
--- a/templates/admin/hashtags.html
+++ b/templates/admin/hashtags.html
@@ -7,11 +7,11 @@
{% for hashtag in page_obj %}
-
+
|
-
+
{{ hashtag.display_name }}
{% if hashtag.public %}Public{% elif hashtag.public is None %}Unreviewed{% else %}Private{% endif %}
|
diff --git a/templates/admin/identities.html b/templates/admin/identities.html
index 62c87e3..15bbea2 100644
--- a/templates/admin/identities.html
+++ b/templates/admin/identities.html
@@ -22,7 +22,7 @@
{% for identity in page_obj %}
-
+
|
-
+
{{ identity.html_name_or_handle }}
@{{ identity.handle }}
|
diff --git a/templates/admin/identity_edit.html b/templates/admin/identity_edit.html
index 2f9fa28..28000c6 100644
--- a/templates/admin/identity_edit.html
+++ b/templates/admin/identity_edit.html
@@ -115,7 +115,7 @@
{% endif %}
diff --git a/templates/admin/invite_view.html b/templates/admin/invite_view.html
index b5ded54..26deb7d 100644
--- a/templates/admin/invite_view.html
+++ b/templates/admin/invite_view.html
@@ -13,7 +13,7 @@
{% include "forms/_field.html" with field=form.notes %}
diff --git a/templates/admin/invites.html b/templates/admin/invites.html
index fcfbe74..bfd21fc 100644
--- a/templates/admin/invites.html
+++ b/templates/admin/invites.html
@@ -12,11 +12,11 @@
{% for invite in page_obj %}
-
+
|
-
+
{{ invite.token }}
{% if invite.note %}
diff --git a/templates/admin/report_view.html b/templates/admin/report_view.html
index 71c24d1..9d93fb3 100644
--- a/templates/admin/report_view.html
+++ b/templates/admin/report_view.html
@@ -77,7 +77,7 @@
| |