{% extends "rpt_base.html" %}
{% load staticfiles %}

{% block header %}
<h1>My DataSets</a></h1>
{% endblock %}

{% block content %}
<p><a href="{% url 'query_builder' %}">Create a new DataSet&rarr;</a></p>

{% if datasets|length > 0 %}
    <table class="datasets">
        <tr><th>DataSet</th><th>Status</th><th>Created</th><th>Owner</th>
            </tr>
        {% for d in datasets %}
            <tr>
                <td><a href="{{ d.get_absolute_url }}">{{ d.hr_name }}</a></td>
                <td>{{ d.status }}<br
                    />{% if d.archive_path %}<a href="{{ d.get_download_url }}">Download&rarr;</a>{% endif %}
                    </td>
                <td>{{ d.created }}</td>
                <td></td>
                </tr>
        {% endfor %}
    </table>
{% endif %}
{% endblock %}
