activity: Add separate page for remote server information/table.

Moves the "Remote Zulip servers" tab in the "/activity" page for
an installation to a separate page, "/activity/remote".

Prototype for moving other tabs in "/activity" to separate pages.
This commit is contained in:
Lauryn Menard
2023-10-04 20:59:03 +02:00
committed by Tim Abbott
parent 91f81d3962
commit afc1d2a409
6 changed files with 106 additions and 62 deletions

View File

@@ -31,10 +31,14 @@ class ActivityTest(ZulipTestCase):
user_profile.is_staff = True
user_profile.save(update_fields=["is_staff"])
with self.assert_database_query_count(18):
with self.assert_database_query_count(17):
result = self.client_get("/activity")
self.assertEqual(result.status_code, 200)
with self.assert_database_query_count(4):
result = self.client_get("/activity/remote")
self.assertEqual(result.status_code, 200)
with self.assert_database_query_count(8):
result = self.client_get("/realm_activity/zulip/")
self.assertEqual(result.status_code, 200)