diff --git a/css/base.css b/css/base.css index 5599eb3..3376742 100644 --- a/css/base.css +++ b/css/base.css @@ -487,6 +487,15 @@ a:hover:not(.lang-link):not(.\~urge), a:active:not(.lang-link):not(.\~urge) { color: var(--color-urge-200); } +a.button, +a.button:link, +a.button:visited, +a.button:focus, +a.buton:hover { + color: var(--color-content) !important; +} + + .link-center { display: block; text-align: center; diff --git a/html/user.html b/html/user.html index c24eb83..3f78f8b 100644 --- a/html/user.html +++ b/html/user.html @@ -68,6 +68,7 @@ {{ .strings.logout }} + {{ .strings.admin }}
diff --git a/ts/user.ts b/ts/user.ts index 84e0867..ed71747 100644 --- a/ts/user.ts +++ b/ts/user.ts @@ -391,9 +391,12 @@ document.addEventListener("details-reload", () => { expiryCard.expiry = details.expiry; + const adminBackButton = document.getElementById("admin-back-button") as HTMLAnchorElement; + adminBackButton.href = window.location.href.replace("my/account", ""); let messageCard = document.getElementById("card-message"); if (details.accounts_admin) { + adminBackButton.classList.remove("unfocused"); if (typeof(messageCard) == "undefined" || messageCard == null) { messageCard = document.createElement("div"); messageCard.classList.add("card", "@low", "dark:~d_neutral", "content");