|
|
@ -85,32 +85,34 @@ |
|
|
|
{{ctx.AvatarUtils.Avatar .SignedUser 40}} |
|
|
|
{{ctx.AvatarUtils.Avatar .SignedUser 40}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<div class="content"> |
|
|
|
<div class="content"> |
|
|
|
<form class="ui segment form form-fetch-action" id="comment-form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/comments" method="post"> |
|
|
|
<div class="ui segment"> |
|
|
|
{{template "repo/issue/comment_tab" .}} |
|
|
|
<form class="ui form form-fetch-action" id="comment-form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/comments" method="post"> |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
{{template "repo/issue/comment_tab" .}} |
|
|
|
<div class="field footer"> |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
<div class="text right"> |
|
|
|
<div class="field footer"> |
|
|
|
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .DisableStatusChange)}} |
|
|
|
<div class="text right"> |
|
|
|
{{if .Issue.IsClosed}} |
|
|
|
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .DisableStatusChange)}} |
|
|
|
<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"> |
|
|
|
{{if .Issue.IsClosed}} |
|
|
|
{{ctx.Locale.Tr "repo.issues.reopen_issue"}} |
|
|
|
<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"> |
|
|
|
</button> |
|
|
|
{{ctx.Locale.Tr "repo.issues.reopen_issue"}} |
|
|
|
{{else}} |
|
|
|
</button> |
|
|
|
{{$closeTranslationKey := "repo.issues.close"}} |
|
|
|
{{else}} |
|
|
|
{{if .Issue.IsPull}} |
|
|
|
{{$closeTranslationKey := "repo.issues.close"}} |
|
|
|
{{$closeTranslationKey = "repo.pulls.close"}} |
|
|
|
{{if .Issue.IsPull}} |
|
|
|
|
|
|
|
{{$closeTranslationKey = "repo.pulls.close"}} |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
<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"> |
|
|
|
|
|
|
|
{{ctx.Locale.Tr $closeTranslationKey}} |
|
|
|
|
|
|
|
</button> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<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"> |
|
|
|
|
|
|
|
{{ctx.Locale.Tr $closeTranslationKey}} |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<button class="ui primary button"> |
|
|
|
<button class="ui primary button"> |
|
|
|
{{ctx.Locale.Tr "repo.issues.create_comment"}} |
|
|
|
{{ctx.Locale.Tr "repo.issues.create_comment"}} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{else if .Repository.IsArchived}} |
|
|
|
{{else if .Repository.IsArchived}} |
|
|
|