Skip to content

Commit

Permalink
[frogend/chore] Fix profile domain (#1779)
Browse files Browse the repository at this point in the history
* render domain on profile pages

* remove unused additional sr-only spans
  • Loading branch information
f0x52 authored May 14, 2023
1 parent 3046dab commit 514eb8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/template/profile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
Expand All @@ -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 }}
Expand Down

0 comments on commit 514eb8c

Please sign in to comment.