mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-28 11:14:54 -04:00
feat: add label to profile avatar card
This commit is contained in:
parent
bcba4b8fb4
commit
1e174118df
1 changed files with 1 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
<div class="content tw-break-anywhere profile-avatar-name">
|
||||
{{if .ContextUser.FullName}}<span class="header text center">{{.ContextUser.FullName}}</span>{{end}}
|
||||
<span class="username">{{.ContextUser.Name}} {{if .ContextUser.GetPronouns .IsSigned}} · {{.ContextUser.GetPronouns .IsSigned}}{{end}}</span>
|
||||
{{if .ContextUser.IsBot}}<span class="ui basic label tw-p-1 tw-align-baseline">{{ctx.Locale.Tr "admin.users.bot"}}</span>{{end}}
|
||||
<div class="tw-mt-2 tw-flex tw-items-center tw-gap-2 tw-justify-center">
|
||||
<span>
|
||||
<a class="muted" href="{{.ContextUser.HomeLink}}?tab=followers">{{svg "octicon-people" 18 "tw-mr-1"}}{{ctx.Locale.TrN .NumFollowers "user.followers_one" "user.followers_few" .NumFollowers}}</a> · <a class="muted" href="{{.ContextUser.HomeLink}}?tab=following">{{ctx.Locale.TrN .NumFollowing "user.following_one" "user.following_few" .NumFollowing}}</a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue