From 85eea23d98be29c66d524a76884d2185bbdac3cb Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 27 Nov 2025 10:50:18 +0000 Subject: [PATCH] accounts: share telegram linking modal with other pages the one on the admin page was a little messed up anyway. Not relevant to the other linking modals, as the process is different (simpler) on the admin page. --- html/account-linking-discord.html | 16 +++++++++ html/account-linking-matrix.html | 18 ++++++++++ html/account-linking-telegram.html | 18 ++++++++++ html/account-linking.html | 55 ++---------------------------- html/admin.html | 19 +---------- ts/modules/accounts.ts | 7 ++-- 6 files changed, 60 insertions(+), 73 deletions(-) create mode 100644 html/account-linking-discord.html create mode 100644 html/account-linking-matrix.html create mode 100644 html/account-linking-telegram.html diff --git a/html/account-linking-discord.html b/html/account-linking-discord.html new file mode 100644 index 0000000..4d25dd6 --- /dev/null +++ b/html/account-linking-discord.html @@ -0,0 +1,16 @@ +{{ if .discordEnabled }} + +{{ end }} diff --git a/html/account-linking-matrix.html b/html/account-linking-matrix.html new file mode 100644 index 0000000..02865ff --- /dev/null +++ b/html/account-linking-matrix.html @@ -0,0 +1,18 @@ +{{ if .matrixEnabled }} + +{{ end }} diff --git a/html/account-linking-telegram.html b/html/account-linking-telegram.html new file mode 100644 index 0000000..7c8fae7 --- /dev/null +++ b/html/account-linking-telegram.html @@ -0,0 +1,18 @@ +{{ if .telegramEnabled }} + +{{ end }} diff --git a/html/account-linking.html b/html/account-linking.html index e38f013..2ff6525 100644 --- a/html/account-linking.html +++ b/html/account-linking.html @@ -1,52 +1,3 @@ -{{ if .discordEnabled }} - -{{ end }} -{{ if .telegramEnabled }} - -{{ end }} -{{ if .matrixEnabled }} - -{{ end }} +{{ template "account-linking-discord.html" . }} +{{ template "account-linking-telegram.html" . }} +{{ template "account-linking-matrix.html" . }} diff --git a/html/admin.html b/html/admin.html index 580963b..2be07c1 100644 --- a/html/admin.html +++ b/html/admin.html @@ -491,24 +491,7 @@ {{ .strings.update }} - {{ if .telegramEnabled }} - - {{ end }} + {{ template "account-linking-telegram.html" . }} {{ if .discordEnabled }}