summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2023-05-14 14:49:01 +0200
committerLibravatar GitHub <noreply@github.com>2023-05-14 14:49:01 +0200
commit514eb8c83e0603c66b70c7640cd3221d19a99af0 (patch)
tree89da92525569019da445791fb8822477ece39e0f
parent[frogend/chore] Update backnextlinks (#1774) (diff)
downloadgotosocial-514eb8c83e0603c66b70c7640cd3221d19a99af0.tar.xz
[frogend/chore] Fix profile domain (#1779)
* render domain on profile pages * remove unused additional sr-only spans
-rw-r--r--web/template/profile.tmpl6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl
index fe1ac092d..4207b39e8 100644
--- a/web/template/profile.tmpl
+++ b/web/template/profile.tmpl
@@ -36,10 +36,8 @@
{{else}}
{{.account.Username}}
{{end}}
- <span class="sr-only">.</span>
</span>
- <span class="username text-cutoff">@{{.account.Username}}<span class="sr-only">,
- </span>{{acctInstance .account.Acct}}</span>
+ <span class="username text-cutoff">@{{.account.Username}}@{{.instance.AccountDomain}}</span>
{{- /* Only render account role if 1. it's present and 2. it's not equal to the standard 'user' role */ -}}
{{ if and (.account.Role) (ne .account.Role.Name "user") }}
<div class="role {{ .account.Role.Name }}">
@@ -50,7 +48,7 @@
<div class="sr-only">
Profile for
{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}.
- Username @{{.account.Username}}, {{acctInstance .account.Acct}}.
+ Username @{{.account.Username}}, {{.instance.AccountDomain}}.
{{ if and (.account.Role) (ne .account.Role.Name "user") }}
Role: {{ .account.Role.Name }}
{{ end }}