mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 13:55:27 +00:00
d2e4039def
GitHub like role descriptor ![image](https://github.com/go-gitea/gitea/assets/18380374/ceaed92c-6749-47b3-89e8-0e0e7ae65321) ![image](https://github.com/go-gitea/gitea/assets/18380374/8193ec34-cbf0-47f9-b0de-10dbddd66970) ![image](https://github.com/go-gitea/gitea/assets/18380374/56c7ed85-6177-425e-9f2f-926e99770782) --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
11 lines
425 B
Go HTML Template
11 lines
425 B
Go HTML Template
{{if and .ShowRole.IsPoster (not .IgnorePoster)}}
|
|
<div class="ui basic label role-label" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.author_helper"}}">
|
|
{{ctx.Locale.Tr "repo.issues.author"}}
|
|
</div>
|
|
{{end}}
|
|
{{if .ShowRole.RoleInRepo}}
|
|
<div class="ui basic label role-label" data-tooltip-content="{{.ShowRole.RoleInRepo.LocaleHelper ctx.Locale}}">
|
|
{{.ShowRole.RoleInRepo.LocaleString ctx.Locale}}
|
|
</div>
|
|
{{end}}
|