diff options
Diffstat (limited to 'web/template/profile.tmpl')
-rw-r--r-- | web/template/profile.tmpl | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index a06c842ab..adeb83f3e 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -155,8 +155,24 @@ {{- .account.Username -}} {{- end -}} </dd> - <dt class="sr-only">Username</dt> - <dd class="username text-cutoff">@{{- .account.Username -}}@{{- .instance.AccountDomain -}}</dd> + <div class="bot-username-wrapper"> + {{- if .account.Bot }} + <dt class="sr-only">Bot account</dt> + <dd> + <span class="sr-only">true</span> + <div + class="bot-legend-wrapper" + aria-hidden="true" + title="This is a bot account." + > + <i class="bot-icon fa fa-microchip"></i> + <span class="bot-legend">bot</span> + </div> + </dd> + {{- end }} + <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") }} <dt class="sr-only">Role</dt> <dd class="role {{ .account.Role.Name -}}">{{- .account.Role.Name -}}</dd> |