{% extends "layouts/content.html" %}
{% load django_tables2 %}
{% load i18n %}
{% load static %}

{% block styles %}
  <style>
    .glyphicon-remove {
      color: red;
    }
    .glyphicon-ok {
      color: green;
    }
  </style>
{% endblock %}

{% block content %}
    <h2>Results for test suite {{ suite_name }} - Test Job {{ job_link }}</h2>
<div class="row">
  <div class="col-md-4">
    <h4 class="modal-header">Exports
      <button class="btn btn-info btn-xs" data-toggle="tooltip" data-placement="right"
              title="Download links can be used with tokens:
  ?user=user.name&amp;token=tokenstring">?</button>
        </h4>
    <dl class="dl-horizontal">
    <dt>Test suite export :</dt>
    <dd><a class="btn btn-xs btn-info" href="{% url 'lava.results.suite_csv' job.id suite_name %}"
       title="Download as CSV"><span class="glyphicon glyphicon-download"></span> CSV</a> or <a
            class="btn btn-xs btn-info" href="{% url 'lava.results.suite_yaml' job.id suite_name %}"
       title="Download as YAML"><span class="glyphicon glyphicon-download"></span> YAML</a></dd>
    </dl>
   </div>
</div>
{% render_table suite_table %}

{% endblock %}
{% block scripts %}
<script type="text/javascript" src="{% static "lava_scheduler_app/js/tables.js" %}"></script>
{% endblock %}
