diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/template/profile.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index adeb83f3e..bf58d660b 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -173,9 +173,11 @@ <dt class="sr-only">Username</dt> <dd class="username text-cutoff">@{{- .account.Username -}}@{{- .instance.AccountDomain -}}</dd> </div> - {{- if and (.account.Role) (ne .account.Role.Name "user") }} + {{- if .account.Roles }} <dt class="sr-only">Role</dt> - <dd class="role {{ .account.Role.Name -}}">{{- .account.Role.Name -}}</dd> + {{- range .account.Roles }} + <dd class="role {{ .Name -}}">{{- .Name -}}</dd> + {{- end }} {{- end }} </dl> </div> |