From 5aca09b59e3d467df301ac29a35960354b74cf28 Mon Sep 17 00:00:00 2001
From: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Wed, 21 Feb 2024 16:11:11 +0100
Subject: [chore] Rename frontend.tmpl to settings.tmpl, remove unused
"lightgray" class (#2674)
---
internal/web/settings-panel.go | 2 +-
web/template/frontend.tmpl | 24 ------------------------
web/template/settings.tmpl | 24 ++++++++++++++++++++++++
3 files changed, 25 insertions(+), 25 deletions(-)
delete mode 100644 web/template/frontend.tmpl
create mode 100644 web/template/settings.tmpl
diff --git a/internal/web/settings-panel.go b/internal/web/settings-panel.go
index 9de30d1f1..ec8166e95 100644
--- a/internal/web/settings-panel.go
+++ b/internal/web/settings-panel.go
@@ -46,7 +46,7 @@ func (m *Module) SettingsPanelHandler(c *gin.Context) {
}
page := apiutil.WebPage{
- Template: "frontend.tmpl",
+ Template: "settings.tmpl",
Instance: instance,
Stylesheets: []string{
cssFA,
diff --git a/web/template/frontend.tmpl b/web/template/frontend.tmpl
deleted file mode 100644
index 8e5267f4a..000000000
--- a/web/template/frontend.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-{{- /*
-// GoToSocial
-// Copyright (C) GoToSocial Authors admin@gotosocial.org
-// SPDX-License-Identifier: AGPL-3.0-or-later
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see .
-*/ -}}
-
-{{- with . }}
-
-
-
-{{- end }}
\ No newline at end of file
diff --git a/web/template/settings.tmpl b/web/template/settings.tmpl
new file mode 100644
index 000000000..4d03ccc9d
--- /dev/null
+++ b/web/template/settings.tmpl
@@ -0,0 +1,24 @@
+{{- /*
+// GoToSocial
+// Copyright (C) GoToSocial Authors admin@gotosocial.org
+// SPDX-License-Identifier: AGPL-3.0-or-later
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+*/ -}}
+
+{{- with . }}
+
+
+
+{{- end }}
\ No newline at end of file
--
cgit v1.2.3