{% extends "layout.html" %}
{% set title = "Downloads - OD-Database" %}
{% set current_page = "dl" %}

{% block body %}
    <div class="container">
        <div class="card">
            <div class="card-header">Downloads</div>
            <div class="card-body">

                <p>Please let me know if you used the database in a project!</p>
                <p>The entire database is exported to CSV regularly</p>

                <table class="table table-striped">

                    <thead>
                    <tr>
                        <th>Description</th>
                        <th>Size</th>
                        <th>Date</th>
                    </tr>
                    </thead>

                    <tbody>
                    {% if export_file_stats %}
                    <tr>
                        <td><a href="/get_export">out.csv.xz</a></td>
                        <td>{{ export_file_stats.st_size |filesizeformat }}</td>
                        <td>{{ export_file_stats.st_mtime|datetime_format }} UTC</td>
                    </tr>
                    {% endif %}
                    </tbody>

                </table>
            </div>
        </div>
    </div>
{% endblock body %}
