本站源代码
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

48 Zeilen
2.6KB

  1. {{if and $.root.SignedUserID (not $.Repository.IsArchived)}}
  2. {{if $.hidden}}
  3. <button class="comment-form-reply ui green labeled icon tiny button"><i class="reply icon"></i> {{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
  4. {{end}}
  5. <form class="ui form {{if $.hidden}}hide comment-form comment-form-reply{{end}}" action="{{$.root.Issue.HTMLURL}}/files/reviews/comments" method="post">
  6. {{$.root.CsrfTokenHtml}}
  7. <input type="hidden" name="side" value="{{if $.Side}}{{$.Side}}{{end}}">
  8. <input type="hidden" name="line" value="{{if $.Line}}{{$.Line}}{{end}}">
  9. <input type="hidden" name="path" value="{{if $.File}}{{$.File}}{{end}}">
  10. <input type="hidden" name="diff_start_cid">
  11. <input type="hidden" name="diff_end_cid">
  12. <input type="hidden" name="diff_base_cid">
  13. <div class="ui top attached tabular menu" {{if not $.hidden}}onload="assingMenuAttributes(this)" {{end}}data-write="write" data-preview="preview">
  14. <a class="active item" data-tab="write">{{$.root.i18n.Tr "write"}}</a>
  15. <a class="item" data-tab="preview" data-url="{{$.root.Repository.APIURL}}/markdown" data-context="{{$.root.RepoLink}}">{{$.root.i18n.Tr "preview"}}</a>
  16. </div>
  17. <div class="ui bottom attached active tab segment" data-tab="write">
  18. <div class="field">
  19. <textarea name="content" placeholder="{{$.root.i18n.Tr "repo.diff.comment.placeholder"}}"></textarea>
  20. </div>
  21. </div>
  22. <div class="ui bottom attached tab segment markdown" data-tab="preview">
  23. {{.i18n.Tr "loading"}}
  24. </div>
  25. <div class="footer">
  26. <span class="markdown-info"><i class="octicon octicon-markdown"></i> {{$.root.i18n.Tr "repo.diff.comment.markdown_info"}}</span>
  27. <div class="ui right floated">
  28. {{if $.reply}}
  29. <button name="reply" value="{{$.reply}}" class="ui submit green tiny button btn-reply">{{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
  30. {{else}}
  31. {{if $.root.CurrentReview}}
  32. <button name="is_review" value="true" type="submit"
  33. class="ui submit green tiny button btn-add-comment">{{$.root.i18n.Tr "repo.diff.comment.add_review_comment"}}</button>
  34. {{else}}
  35. <button name="is_review" value="true" type="submit"
  36. class="ui submit green tiny button btn-start-review">{{$.root.i18n.Tr "repo.diff.comment.start_review"}}</button>
  37. <button type="submit"
  38. class="ui submit tiny basic button btn-add-single">{{$.root.i18n.Tr "repo.diff.comment.add_single_comment"}}</button>
  39. {{end}}
  40. {{end}}
  41. {{if or (not $.HasComments) $.hidden}}
  42. <button type="button" class="ui submit tiny basic button btn-cancel" onclick="cancelCodeComment(this);">{{$.root.i18n.Tr "cancel"}}</button>
  43. {{end}}
  44. </div>
  45. </div>
  46. </form>
  47. {{end}}
上海开阖软件有限公司 沪ICP备12045867号-1