From 0dfd7bf19e800b67e03726c18cfa00e623d6b121 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 3 Jul 2026 18:36:55 -0400 Subject: fix: admin gui map screen works with rooms across multiple directories --- internal/admin/templates/duplicate-rooms.html | 93 +++++++++++++++++++++++++++ internal/admin/templates/layout.html | 1 + 2 files changed, 94 insertions(+) create mode 100644 internal/admin/templates/duplicate-rooms.html (limited to 'internal/admin/templates') diff --git a/internal/admin/templates/duplicate-rooms.html b/internal/admin/templates/duplicate-rooms.html new file mode 100644 index 0000000..4e603bb --- /dev/null +++ b/internal/admin/templates/duplicate-rooms.html @@ -0,0 +1,93 @@ +{{define "body-duplicate-rooms"}} + +
+

Duplicate Room IDs Detected

+

+ The following room IDs appear in multiple files. This corrupts the map and makes + the editor unreliable. Delete extra copies or rename them to new unique IDs. +

+

Loading…

+
+ + + +
+
+
+ +{{end}} diff --git a/internal/admin/templates/layout.html b/internal/admin/templates/layout.html index ed939bd..410c8df 100644 --- a/internal/admin/templates/layout.html +++ b/internal/admin/templates/layout.html @@ -42,6 +42,7 @@ {{else if eq .Page "players"}}{{template "body-players" .}} {{else if eq .Page "dashboard"}}{{template "body-dashboard" .}} {{else if eq .Page "files"}}{{template "body-files" .}} +{{else if eq .Page "duplicate-rooms"}}{{template "body-duplicate-rooms" .}} {{else}}

Unknown page: {{.Page}}

{{end}} -- cgit v1.2.3