<commit_before>{% extends "base.html" %}
{% load i18n %}

{% block title %}{% trans "Preview your comment" %}{% endblock %}

{% block content %}
  
  {% load comments %}
  
  <div id="centercol">
  
    <form action="{% comment_form_target %}" method="post">{% csrf_token %}
      {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
      {% if form.errors %}
      <h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1><br/>
      {% else %}
      <h1>{% trans "Preview your comment" %}</h1><br />
        <blockquote>{{ comment|linebreaks }}</blockquote>
        <p>
        {% trans "and" %} <input type="submit" name="submit" class="submit-post" value="{% trans 'Post your comment' %}" id="submit" /> {% trans "or make changes" %}:
        </p>
      {% endif %}
      {% for field in form %}
        {% if field.is_hidden %}
          <div>{{ field }}</div>
        {% else %}
          {% if field.errors %}{{ field.errors }}{% endif %}
          <p
            {% if field.errors %} class="error"{% endif %}
            {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
            {{ field.label_tag }} {{ field }}<br/>
          </p>
        {% endif %}
      {% endfor %}
      <p class="submit">
      <input type="submit" name="submit" class="submit-post btn" value="{% trans "Post" %}" />
      <input type="submit" name="preview" class="submit-preview btn" value="{% trans "Preview" %}" />
      </p>
    </form>
  
  </div>
{% endblock %}<commit_msg>Adapted comments templates to bootstrap 2.0<commit_after>{% extends "base.html" %}
{% load i18n %}

{% block title %}{% trans "Preview your comment" %}{% endblock %}

{% block content %}
  
    {% load comments %}
  
    <div class="row">
        <div class="span12">
            <form action="{% comment_form_target %}" method="post">{% csrf_token %}
                {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
                {% if form.errors %}
                    <h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1><br/>
                {% else %}
                    <h1>{% trans "Preview your comment" %}</h1><br />
                    <blockquote>{{ comment|linebreaks }}</blockquote>
                    <p>
                        {% trans "and" %} <input type="submit" name="submit" class="submit-post" value="{% trans 'Post your comment' %}" id="submit" /> {% trans "or make changes" %}:
                    </p>
                {% endif %}
                {% for field in form %}
                    {% if field.is_hidden %}
                        <div>{{ field }}</div>
                    {% else %}
                        {% if field.errors %}{{ field.errors }}{% endif %}
                        <p {% if field.errors %} class="error"{% endif %} {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
                            {{ field.label_tag }} {{ field }}<br/>
                        </p>
                    {% endif %}
                {% endfor %}
                <p class="submit">
                    <input type="submit" name="submit" class="submit-post btn" value="{% trans "Post" %}" />
                    <input type="submit" name="preview" class="submit-preview btn" value="{% trans "Preview" %}" />
                </p>
            </form>
        </div>
    </div>
 
{% endblock %}
{'fraction_non_alphanumeric': 0.1900414937759336, 'fraction_numerical': 0.004426002766251729, 'mean_word_length': 1.9615069615069616, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6431865', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1004, 'n_words': 276}