|
43 | 43 | {{end}}
|
44 | 44 | </div>
|
45 | 45 | <div class="comment-header-right actions df ac">
|
| 46 | + {{if (.ShowRole.HasRole "Poster")}} |
| 47 | + <div class="ui basic label"> |
| 48 | + {{$.i18n.Tr "repo.issues.poster"}} |
| 49 | + </div> |
| 50 | + {{end}} |
| 51 | + {{if (.ShowRole.HasRole "Writer")}} |
| 52 | + <div class="ui basic label"> |
| 53 | + {{$.i18n.Tr "repo.issues.collaborator"}} |
| 54 | + </div> |
| 55 | + {{end}} |
| 56 | + {{if (.ShowRole.HasRole "Owner")}} |
| 57 | + <div class="ui basic label"> |
| 58 | + {{$.i18n.Tr "repo.issues.owner"}} |
| 59 | + </div> |
| 60 | + {{end}} |
46 | 61 | {{if not $.Repository.IsArchived}}
|
47 |
| - {{if (.ShowRole.HasRole "Poster")}} |
48 |
| - <div class="ui basic label"> |
49 |
| - {{$.i18n.Tr "repo.issues.poster"}} |
50 |
| - </div> |
51 |
| - {{end}} |
52 |
| - {{if (.ShowRole.HasRole "Writer")}} |
53 |
| - <div class="ui basic label"> |
54 |
| - {{$.i18n.Tr "repo.issues.collaborator"}} |
55 |
| - </div> |
56 |
| - {{end}} |
57 |
| - {{if (.ShowRole.HasRole "Owner")}} |
58 |
| - <div class="ui basic label"> |
59 |
| - {{$.i18n.Tr "repo.issues.owner"}} |
60 |
| - </div> |
61 |
| - {{end}} |
62 | 62 | {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
63 | 63 | {{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "issue" true "diff" false "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
|
64 | 64 | {{end}}
|
|
565 | 565 | {{$.i18n.Tr "repo.issues.owner"}}
|
566 | 566 | </div>
|
567 | 567 | {{end}}
|
568 |
| - {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID)}} |
569 |
| - {{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "issue" true "diff" true "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}} |
| 568 | + {{if not $.Repository.IsArchived}} |
| 569 | + {{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID)}} |
| 570 | + {{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "issue" true "diff" true "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}} |
| 571 | + {{end}} |
570 | 572 | </div>
|
571 | 573 | </div>
|
572 | 574 | <div class="text comment-content">
|
|
0 commit comments