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.5KB

123456789101112131415161718192021222324252627282930
  1. <div class="ui top right pointing dropdown custom" id="review-box">
  2. <div class="ui tiny green button btn-review">
  3. {{.i18n.Tr "repo.diff.review"}}
  4. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  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. <div class="header df ac pb-3">
  12. <div class="f1">{{$.i18n.Tr "repo.diff.review.header"}}</div>
  13. <a class="muted close px-3">{{svg "octicon-x" 16}}</a>
  14. </div>
  15. <div class="ui field">
  16. <textarea name="content" tabindex="0" rows="2" placeholder="{{$.i18n.Tr "repo.diff.review.placeholder"}}"></textarea>
  17. </div>
  18. {{if .IsAttachmentEnabled}}
  19. <div class="field">
  20. {{template "repo/upload" .}}
  21. </div>
  22. {{end}}
  23. <div class="ui divider"></div>
  24. <button type="submit" name="type" value="approve" {{ if and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID) }} disabled {{ end }} class="ui submit green tiny button btn-submit">{{$.i18n.Tr "repo.diff.review.approve"}}</button>
  25. <button type="submit" name="type" value="comment" class="ui submit tiny basic button btn-submit">{{$.i18n.Tr "repo.diff.review.comment"}}</button>
  26. <button type="submit" name="type" value="reject" {{ if and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID) }} disabled {{ end }} class="ui submit red tiny button btn-submit">{{$.i18n.Tr "repo.diff.review.reject"}}</button>
  27. </form>
  28. </div>
  29. </div>
  30. </div>