[frogend/chore] Fix profile domain (#1779)
* render domain on profile pages * remove unused additional sr-only spans
This commit is contained in:
parent
3046dabd50
commit
514eb8c83e
|
@ -36,10 +36,8 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
{{.account.Username}}
|
{{.account.Username}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<span class="sr-only">.</span>
|
|
||||||
</span>
|
</span>
|
||||||
<span class="username text-cutoff">@{{.account.Username}}<span class="sr-only">,
|
<span class="username text-cutoff">@{{.account.Username}}@{{.instance.AccountDomain}}</span>
|
||||||
</span>{{acctInstance .account.Acct}}</span>
|
|
||||||
{{- /* Only render account role if 1. it's present and 2. it's not equal to the standard 'user' role */ -}}
|
{{- /* 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") }}
|
{{ if and (.account.Role) (ne .account.Role.Name "user") }}
|
||||||
<div class="role {{ .account.Role.Name }}">
|
<div class="role {{ .account.Role.Name }}">
|
||||||
|
@ -50,7 +48,7 @@
|
||||||
<div class="sr-only">
|
<div class="sr-only">
|
||||||
Profile for
|
Profile for
|
||||||
{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}.
|
{{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") }}
|
{{ if and (.account.Role) (ne .account.Role.Name "user") }}
|
||||||
Role: {{ .account.Role.Name }}
|
Role: {{ .account.Role.Name }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue