pull_request_comment.html 998 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {% if g.authenticated %}
  2. <section class="add_comment">
  3. <form action="{{ url_for(
  4. 'ui_ns.pull_request_add_comment',
  5. repo=repo.name,
  6. username=username,
  7. namespace=repo.namespace,
  8. requestid=requestid, commit=commit, tree_id=tree_id, filename=filename,
  9. row=row) }}"
  10. method="post" class="add_comment_form">
  11. <div class="tabs ui-widget ui-widget-content ui-corner-all"
  12. id="comment_block">
  13. <div id="edit">
  14. <textarea class="form-control width-100per" id="inline-comment"
  15. name="comment" title="comment">
  16. {{- form.comment.data if form.comment.data else '' -}}
  17. </textarea>
  18. </div>
  19. <div>
  20. {{ form.csrf_token }}
  21. <div>
  22. <input type="submit" class="btn btn-primary" value="Comment" />
  23. <input type="button" class="btn btn-secondary cancel" value="Cancel"/>
  24. </div>
  25. </form>
  26. </section>
  27. {% else %}
  28. <p><a href="{{ url_for('auth_login') }}">Log in</a> to comment on this ticket.</p>
  29. {% endif %}