diff options
Diffstat (limited to 'templates/repo/issue/view_content.tmpl')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index f6572d4965..78587ac7b6 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -44,18 +44,7 @@ {{end}} </div> <div class="comment-header-right actions gt-df gt-ac"> - {{if gt .Issue.ShowRole 0}} - {{if (.Issue.ShowRole.HasRole "Writer")}} - <div class="ui basic label role-label"> - {{$.locale.Tr "repo.issues.collaborator"}} - </div> - {{end}} - {{if (.Issue.ShowRole.HasRole "Owner")}} - <div class="ui basic label role-label"> - {{$.locale.Tr "repo.issues.owner"}} - </div> - {{end}} - {{end}} + {{template "repo/issue/view_content/show_role" dict "ShowRole" .Issue.ShowRole "IgnorePoster" true}} {{if not $.Repository.IsArchived}} {{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index)}} {{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" .Issue "delete" false "issue" true "diff" false "IsCommentPoster" $.IsIssuePoster}} |