mirror of https://github.com/go-gitea/gitea
Add `member`, `collaborator`, `contributor`, and `first-time contributor` roles and tooltips (#26658)
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>pull/26351/head^2
parent
0d55f64e6c
commit
d2e4039def
@ -1,15 +1,10 @@ |
|||||||
{{if and (.ShowRole.HasRole "Poster") (not .IgnorePoster)}} |
{{if and .ShowRole.IsPoster (not .IgnorePoster)}} |
||||||
<div class="ui basic label role-label"> |
<div class="ui basic label role-label" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.author_helper"}}"> |
||||||
{{ctx.Locale.Tr "repo.issues.poster"}} |
{{ctx.Locale.Tr "repo.issues.author"}} |
||||||
</div> |
</div> |
||||||
{{end}} |
{{end}} |
||||||
{{if (.ShowRole.HasRole "Writer")}} |
{{if .ShowRole.RoleInRepo}} |
||||||
<div class="ui basic label role-label"> |
<div class="ui basic label role-label" data-tooltip-content="{{.ShowRole.RoleInRepo.LocaleHelper ctx.Locale}}"> |
||||||
{{ctx.Locale.Tr "repo.issues.collaborator"}} |
{{.ShowRole.RoleInRepo.LocaleString ctx.Locale}} |
||||||
</div> |
|
||||||
{{end}} |
|
||||||
{{if (.ShowRole.HasRole "Owner")}} |
|
||||||
<div class="ui basic label role-label"> |
|
||||||
{{ctx.Locale.Tr "repo.issues.owner"}} |
|
||||||
</div> |
</div> |
||||||
{{end}} |
{{end}} |
||||||
|
Loading…
Reference in new issue