|
|
@ -25,19 +25,19 @@ |
|
|
|
<div class="footer"> |
|
|
|
<div class="footer"> |
|
|
|
<span class="markdown-info"><i class="octicon octicon-markdown"></i> {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span> |
|
|
|
<span class="markdown-info"><i class="octicon octicon-markdown"></i> {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span> |
|
|
|
<div class="ui right floated"> |
|
|
|
<div class="ui right floated"> |
|
|
|
{{if not $.reply}} |
|
|
|
{{if $.reply}} |
|
|
|
|
|
|
|
<button name="reply" value="{{$.reply}}" class="ui submit green tiny button btn-reply">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button> |
|
|
|
|
|
|
|
{{else}} |
|
|
|
{{if $.root.CurrentReview}} |
|
|
|
{{if $.root.CurrentReview}} |
|
|
|
<button name="is_review" value="true" type="submit" |
|
|
|
<button name="is_review" value="true" type="submit" |
|
|
|
class="ui submit green tiny button btn-add-comment">{{$.root.i18n.Tr "repo.diff.comment.add_review_comment"}}</button> |
|
|
|
class="ui submit green tiny button btn-add-comment">{{$.root.i18n.Tr "repo.diff.comment.add_review_comment"}}</button> |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
<button name="is_review" value="true" type="submit" |
|
|
|
<button name="is_review" value="true" type="submit" |
|
|
|
class="ui submit green tiny button btn-start-review">{{$.root.i18n.Tr "repo.diff.comment.start_review"}}</button> |
|
|
|
class="ui submit green tiny button btn-start-review">{{$.root.i18n.Tr "repo.diff.comment.start_review"}}</button> |
|
|
|
|
|
|
|
<button type="submit" |
|
|
|
|
|
|
|
class="ui submit tiny basic button btn-add-single">{{$.root.i18n.Tr "repo.diff.comment.add_single_comment"}}</button> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{if not $.root.CurrentReview}} |
|
|
|
|
|
|
|
<button type="submit" |
|
|
|
|
|
|
|
class="ui submit tiny basic button btn-add-single">{{$.root.i18n.Tr "repo.diff.comment.add_single_comment"}}</button> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
{{if or (not $.HasComments) $.hidden}} |
|
|
|
{{if or (not $.HasComments) $.hidden}} |
|
|
|
<button type="button" class="ui submit tiny basic button btn-cancel" onclick="cancelCodeComment(this);">{{$.root.i18n.Tr "cancel"}}</button> |
|
|
|
<button type="button" class="ui submit tiny basic button btn-cancel" onclick="cancelCodeComment(this);">{{$.root.i18n.Tr "cancel"}}</button> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|