Blob Blame Raw
{% if g.authenticated %}

<section class="add_comment">

  <form action="{{ url_for(
    'ui_ns.pull_request_add_comment',
    repo=repo.name,
    username=username,
    namespace=repo.namespace,
    requestid=requestid, commit=commit, tree_id=tree_id, filename=filename,
    row=row) }}"
    method="post" class="add_comment_form">


    <div class="tabs ui-widget ui-widget-content ui-corner-all"
        id="comment_block">

      <div id="edit">
        <textarea class="form-control width-100per" id="inline-comment"
            name="comment" title="comment">
          {{- form.comment.data if form.comment.data else '' -}}
        </textarea>
      </div>

    <div>

  {{ form.csrf_token }}
    <div>
      <input type="submit" class="btn btn-primary" value="Comment" />
      <input type="button" class="btn btn-secondary cancel" value="Cancel"/>
    </div>

  </form>

</section>

{% else %}
<p><a href="{{ url_for('auth_login') }}">Login</a> to comment on this ticket.</p>
{% endif %}