mirror of
1
Fork 0
forgejo/templates/repo/issue/view_content/show_role.tmpl

16 lines
527 B
Go HTML Template
Raw Normal View History

{{if and .ShowRole.IsPoster (not .IgnorePoster)}}
2024-06-24 17:18:27 +02:00
<div class="ui basic label role-label" data-tooltip-content="
{{if .IsPull}}
{{ctx.Locale.Tr "repo.issues.author.tooltip.pr"}}
{{else}}
{{ctx.Locale.Tr "repo.issues.author.tooltip.issue"}}
{{end}}">
{{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}}