You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

new_review.tmpl 1.4KB

1234567891011121314151617181920212223242526272829
  1. <div class="ui top right pointing dropdown custom" id="review-box">
  2. <div class="ui tiny green button btn-review">
  3. <span class="text">{{.i18n.Tr "repo.diff.review"}}</span>
  4. <i class="dropdown icon"></i>
  5. </div>
  6. <div class="menu review-box">
  7. <div class="ui clearing segment">
  8. <form class="ui form" action="{{.Link}}/reviews/submit" method="post">
  9. {{.CsrfTokenHtml}}
  10. <input type="hidden" name="commit_id" value="{{.AfterCommitID}}"/>
  11. <i class="ui right floated link icon close"></i>
  12. <div class="header">
  13. {{$.i18n.Tr "repo.diff.review.header"}}
  14. </div>
  15. <div class="ui field">
  16. <textarea name="content" tabindex="0" rows="2"
  17. placeholder="{{$.i18n.Tr "repo.diff.review.placeholder"}}"></textarea>
  18. </div>
  19. <div class="ui divider"></div>
  20. <button type="submit" name="type" value="approve" {{ if and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID) }} disabled {{ end }}
  21. class="ui submit green tiny button btn-submit">{{$.i18n.Tr "repo.diff.review.approve"}}</button>
  22. <button type="submit" name="type" value="comment"
  23. class="ui submit tiny basic button btn-submit">{{$.i18n.Tr "repo.diff.review.comment"}}</button>
  24. <button type="submit" name="type" value="reject" {{ if and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID) }} disabled {{ end }}
  25. class="ui submit red tiny button btn-submit">{{$.i18n.Tr "repo.diff.review.reject"}}</button>
  26. </form>
  27. </div>
  28. </div>
  29. </div>