{% load i18n %}

<div class="row">
  <div class="twelve columns">
    {% for level, message in discussion %}
      {% ifchanged level %}

        {% if not forloop.first %}
           {% ifchanged level %}
           </div>
           {% endifchanged %}
        {% endif %}

        <div class="message-level-{{ level }} message-thread">
      {% endifchanged %}

        <div class="message">
          <p>
          <small>{{ level }} {{ message.user.first_name }} {{ message.user.last_name }}  {{ message.created|date:"SHORT_DATETIME_FORMAT" }}<br/></small>
            {{ message.body }} <br/>
            <small><a href="#" id="" reply-to="{{ message.pk }}" class="reply-link">{% trans 'Reply' %}</a></small>
          </p>
        </div>

      {% if forloop.last %}
       </div>
      {% endif %}
    {% endfor %}
  </div>
<div>

<form action="{% url 'applications:create_message' application.id %}"
  method="POST"
  id="new-message-form"> {% csrf_token %}
    <div class="row">
      <div class="four columns end">
        {{ new_message_form.body }}
      </div>
    </div>

  <div class="row">
    <div class="form-actions six columns end">
      <div class="right">
        {{ new_message_form.parent }}
        <input type="submit" value="{% trans 'Save message' %}" class="button" />
      </div>
    </div>
  </div>
</form>

{% load i18n %}

<div class="row">
  <div class="twelve columns">
    {% for level, message in discussion %}
      {% ifchanged level %}

        {% if not forloop.first %}
           {% ifchanged level %}
           </div>
           {% endifchanged %}
        {% endif %}

        <div class="message-level-{{ level }} message-thread">
      {% endifchanged %}

        <div class="message">
          <p>
          <small>{{ message.user.first_name }} {{ message.user.last_name }}  {{ message.created|date:"SHORT_DATETIME_FORMAT" }}<br/></small>
            {{ message.body }} <br/>
            <small><a href="#" id="" reply-to="{{ message.pk }}" class="reply-link">{% trans 'Reply' %}</a></small>
          </p>
        </div>

      {% if forloop.last %}
       </div>
      {% endif %}
    {% endfor %}
  </div>
<div>

<form action="{% url 'applications:create_message' application.id %}"
  method="POST"
  id="new-message-form"> {% csrf_token %}
    <div class="row">
      <div class="four columns end">
        {{ new_message_form.body }}
      </div>
    </div>

  <div class="row">
    <div class="form-actions six columns end">
      <div class="right">
        {{ new_message_form.parent }}
        <input type="submit" value="{% trans 'Save message' %}" class="button" />
      </div>
    </div>
  </div>
</form>

Remove indentation level debug output
applications: Remove indentation level debug output
