summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content/show_role.tmpl
blob: 0f1b895501ce0a7f0ba116282fb97b02d6f9e082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{if and .ShowRole.IsPoster (not .IgnorePoster)}}
	<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}}