mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-18 10:33:24 +02:00
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
Handlebars
11 lines
425 B
Handlebars
{{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}}
|