mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-10 15:06:16 +01:00
bd8a253220
Add a general show role template.
16 lines
430 B
Handlebars
16 lines
430 B
Handlebars
{{if and (.ShowRole.HasRole "Poster") (not .IgnorePoster)}}
|
|
<div class="ui basic label role-label">
|
|
{{ctx.Locale.Tr "repo.issues.poster"}}
|
|
</div>
|
|
{{end}}
|
|
{{if (.ShowRole.HasRole "Writer")}}
|
|
<div class="ui basic label role-label">
|
|
{{ctx.Locale.Tr "repo.issues.collaborator"}}
|
|
</div>
|
|
{{end}}
|
|
{{if (.ShowRole.HasRole "Owner")}}
|
|
<div class="ui basic label role-label">
|
|
{{ctx.Locale.Tr "repo.issues.owner"}}
|
|
</div>
|
|
{{end}}
|