diff options
author | 2024-07-24 10:40:56 +0200 | |
---|---|---|
committer | 2024-07-24 10:40:56 +0200 | |
commit | 325b4a2b4a1dc2fba6a72f0a10dc88b98f57f05c (patch) | |
tree | 8f3c8cdec61a901418c8d729c3a0641a6bda158b /web/template | |
parent | [bugfix] Serialize empty conversation account list as empty list, not null (#... (diff) | |
download | gotosocial-325b4a2b4a1dc2fba6a72f0a10dc88b98f57f05c.tar.xz |
[feature] Allow user to set "bot" flag; show bot icon on profile (#3135)
* [feature] Allow user to set "bot" flag; show bot icon on profile
* tweak
* update customs
Diffstat (limited to 'web/template')
-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> |