|
85 | 85 | {{ctx.AvatarUtils.Avatar .SignedUser 40}} |
86 | 86 | </a> |
87 | 87 | <div class="content"> |
88 | | - <form class="ui segment form form-fetch-action" id="comment-form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/comments" method="post"> |
89 | | - {{template "repo/issue/comment_tab" .}} |
90 | | - {{.CsrfTokenHtml}} |
91 | | - <div class="field footer"> |
92 | | - <div class="text right"> |
93 | | - {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .DisableStatusChange)}} |
94 | | - {{if .Issue.IsClosed}} |
95 | | - <button id="status-button" class="ui primary basic button" data-status="{{ctx.Locale.Tr "repo.issues.reopen_issue"}}" data-status-and-comment="{{ctx.Locale.Tr "repo.issues.reopen_comment_issue"}}" name="status" value="reopen"> |
96 | | - {{ctx.Locale.Tr "repo.issues.reopen_issue"}} |
97 | | - </button> |
98 | | - {{else}} |
99 | | - {{$closeTranslationKey := "repo.issues.close"}} |
100 | | - {{if .Issue.IsPull}} |
101 | | - {{$closeTranslationKey = "repo.pulls.close"}} |
| 88 | + <div class="ui segment"> |
| 89 | + <form class="ui form form-fetch-action" id="comment-form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/comments" method="post"> |
| 90 | + {{template "repo/issue/comment_tab" .}} |
| 91 | + {{.CsrfTokenHtml}} |
| 92 | + <div class="field footer"> |
| 93 | + <div class="text right"> |
| 94 | + {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .DisableStatusChange)}} |
| 95 | + {{if .Issue.IsClosed}} |
| 96 | + <button id="status-button" class="ui primary basic button" data-status="{{ctx.Locale.Tr "repo.issues.reopen_issue"}}" data-status-and-comment="{{ctx.Locale.Tr "repo.issues.reopen_comment_issue"}}" name="status" value="reopen"> |
| 97 | + {{ctx.Locale.Tr "repo.issues.reopen_issue"}} |
| 98 | + </button> |
| 99 | + {{else}} |
| 100 | + {{$closeTranslationKey := "repo.issues.close"}} |
| 101 | + {{if .Issue.IsPull}} |
| 102 | + {{$closeTranslationKey = "repo.pulls.close"}} |
| 103 | + {{end}} |
| 104 | + <button id="status-button" class="ui red basic button" data-status="{{ctx.Locale.Tr $closeTranslationKey}}" data-status-and-comment="{{ctx.Locale.Tr "repo.issues.close_comment_issue"}}" name="status" value="close"> |
| 105 | + {{ctx.Locale.Tr $closeTranslationKey}} |
| 106 | + </button> |
102 | 107 | {{end}} |
103 | | - <button id="status-button" class="ui red basic button" data-status="{{ctx.Locale.Tr $closeTranslationKey}}" data-status-and-comment="{{ctx.Locale.Tr "repo.issues.close_comment_issue"}}" name="status" value="close"> |
104 | | - {{ctx.Locale.Tr $closeTranslationKey}} |
105 | | - </button> |
106 | 108 | {{end}} |
107 | | - {{end}} |
108 | | - <button class="ui primary button"> |
109 | | - {{ctx.Locale.Tr "repo.issues.create_comment"}} |
110 | | - </button> |
| 109 | + <button class="ui primary button"> |
| 110 | + {{ctx.Locale.Tr "repo.issues.create_comment"}} |
| 111 | + </button> |
| 112 | + </div> |
111 | 113 | </div> |
112 | | - </div> |
113 | | - </form> |
| 114 | + </form> |
| 115 | + </div> |
114 | 116 | </div> |
115 | 117 | </div> |
116 | 118 | {{else if .Repository.IsArchived}} |
|
0 commit comments