From c96bc26cef7071641964aa539a4a7b65ab9ffd1a Mon Sep 17 00:00:00 2001 From: Cuynu Date: Sun, 1 Feb 2026 14:03:11 +0700 Subject: [PATCH] custom: some new templates Signed-off-by: Cuynu --- templates/custom/extra_links.tmpl | 3 +- templates/custom/extra_links_footer.tmpl | 2 +- templates/user/settings/appearance.tmpl | 162 ++++++++++++++++++ .../user/settings/security/security.tmpl | 16 ++ 4 files changed, 181 insertions(+), 2 deletions(-) create mode 100644 templates/user/settings/appearance.tmpl create mode 100644 templates/user/settings/security/security.tmpl diff --git a/templates/custom/extra_links.tmpl b/templates/custom/extra_links.tmpl index adbd2c3..b1c0bdd 100644 --- a/templates/custom/extra_links.tmpl +++ b/templates/custom/extra_links.tmpl @@ -1,2 +1,3 @@ -MBCP +Discussion +MBCP YouTube diff --git a/templates/custom/extra_links_footer.tmpl b/templates/custom/extra_links_footer.tmpl index a21313e..bc7b16e 100644 --- a/templates/custom/extra_links_footer.tmpl +++ b/templates/custom/extra_links_footer.tmpl @@ -1 +1 @@ -Instance Agreement +Instance Agreement diff --git a/templates/user/settings/appearance.tmpl b/templates/user/settings/appearance.tmpl new file mode 100644 index 0000000..e2c6a75 --- /dev/null +++ b/templates/user/settings/appearance.tmpl @@ -0,0 +1,162 @@ +{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings sshkeys")}} +
+ + +

+ {{ctx.Locale.Tr "settings.manage_themes"}} +

+
+ +
+ + +

+ {{ctx.Locale.Tr "settings.hints"}} +

+
+
+
+
+ + +
+
+
+ +
+
+
+ + +

+ {{ctx.Locale.Tr "settings.hidden_comment_types"}} +

+
+

+ {{ctx.Locale.Tr "settings.hidden_comment_types_description"}} +

+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+ +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+
+{{template "user/settings/layout_footer" .}} + diff --git a/templates/user/settings/security/security.tmpl b/templates/user/settings/security/security.tmpl new file mode 100644 index 0000000..0887ca4 --- /dev/null +++ b/templates/user/settings/security/security.tmpl @@ -0,0 +1,16 @@ +{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings security" "HideNavbarLinks" .HideNavbarLinks)}} +
+ {{if .MustEnableTwoFactor}} +
{{ctx.Locale.Tr "settings.must_enable_2fa"}}
+ {{end}} + {{template "user/settings/security/twofa" .}} + {{if not .MustEnableTwoFactor}} + {{template "user/settings/security/accountlinks" .}} + {{if .EnableOpenIDSignIn}} + {{template "user/settings/security/openid" .}} + {{end}} + {{end}} +
+ +{{template "user/settings/layout_footer" .}} +