{% extends "base.html" %}

{% block body %}

<div class="row">
  <div class="panel panel-primary">
    <div class="panel-heading" data-toggle="collapse" data-target="#more-information-body">
      <h3 class="panel-title">{{ params['test'] }}</h3>
    </div>

    <div class="panel-body">
      <p>
        The following test is applied:
      </p>
      <blockquote>{{ pprint(test_set.get_test(params['test'])['expression'])|safe }}</blockquote>
    </div>
  </div>
</div>

<p>The following {{ failing_results|count }} {{ failing_results|count|pluralize('activity fails', 'activities fail') }} this test:</p>
<ul>
{% for result in failing_results %}
  <li>
    <h4>{{ result['iati-identifier'] }}</h4>
    <p>
      {{ result['explanation']|safe }}
    </p>
  </li>
{% endfor %}
</ul>
{% endblock %}

{% extends "base.html" %}

{% block body %}

<div class="row">
  <div class="panel panel-primary">
    <div class="panel-heading" data-toggle="collapse" data-target="#more-information-body">
      <h3 class="panel-title">{{ params['test'] }} <a class="pull-right" href="{{ url_for('package_overview', uuid=params['uuid']) }}">Back to overview</a></h3>
    </div>

    <div class="panel-body">
      <p>
        The following test is applied:
      </p>
      <blockquote>{{ pprint(test_set.get_test(params['test'])['expression'])|safe }}</blockquote>
    </div>
  </div>
</div>

<p>The following {{ failing_results|count }} {{ failing_results|count|pluralize('activity fails', 'activities fail') }} this test:</p>
<ul>
{% for result in failing_results %}
  <li>
    <h4>{{ result['iati-identifier'] }}</h4>
    <p>
      {{ result['explanation']|safe }}
    </p>
  </li>
{% endfor %}
</ul>
{% endblock %}

Add a link to overview (better than a dead end)
Add a link to overview (better than a dead end)
