mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
parent
7934602a4c
commit
bd8a253220
@ -44,18 +44,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions gt-df gt-ac">
|
<div class="comment-header-right actions gt-df gt-ac">
|
||||||
{{if gt .Issue.ShowRole 0}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .Issue.ShowRole "IgnorePoster" true}}
|
||||||
{{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}}
|
|
||||||
{{if not $.Repository.IsArchived}}
|
{{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/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}}
|
{{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" .Issue "delete" false "issue" true "diff" false "IsCommentPoster" $.IsIssuePoster}}
|
||||||
|
@ -50,21 +50,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions gt-df gt-ac">
|
<div class="comment-header-right actions gt-df gt-ac">
|
||||||
{{if (.ShowRole.HasRole "Poster")}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.poster"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if (.ShowRole.HasRole "Writer")}}
|
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.collaborator"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if (.ShowRole.HasRole "Owner")}}
|
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.owner"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if not $.Repository.IsArchived}}
|
{{if not $.Repository.IsArchived}}
|
||||||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
||||||
{{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" . "delete" true "issue" true "diff" false "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
{{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" . "delete" true "issue" true "diff" false "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
||||||
@ -442,21 +428,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions gt-df gt-ac">
|
<div class="comment-header-right actions gt-df gt-ac">
|
||||||
{{if (.ShowRole.HasRole "Poster")}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.poster"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if (.ShowRole.HasRole "Writer")}}
|
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.collaborator"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if (.ShowRole.HasRole "Owner")}}
|
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.owner"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if not $.Repository.IsArchived}}
|
{{if not $.Repository.IsArchived}}
|
||||||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
||||||
{{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" . "delete" false "issue" true "diff" false "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
{{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" . "delete" false "issue" true "diff" false "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
||||||
@ -567,21 +539,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions gt-df gt-ac">
|
<div class="comment-header-right actions gt-df gt-ac">
|
||||||
{{if (.ShowRole.HasRole "Poster")}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.poster"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if (.ShowRole.HasRole "Writer")}}
|
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.collaborator"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if (.ShowRole.HasRole "Owner")}}
|
|
||||||
<div class="ui basic label">
|
|
||||||
{{$.locale.Tr "repo.issues.owner"}}
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{if not $.Repository.IsArchived}}
|
{{if not $.Repository.IsArchived}}
|
||||||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
||||||
{{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" . "delete" true "issue" true "diff" true "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
{{template "repo/issue/view_content/context_menu" dict "ctxData" $ "item" . "delete" true "issue" true "diff" true "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
||||||
|
15
templates/repo/issue/view_content/show_role.tmpl
Normal file
15
templates/repo/issue/view_content/show_role.tmpl
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{{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}}
|
Loading…
Reference in New Issue
Block a user