50 lines
No EOL
1.8 KiB
HTML
50 lines
No EOL
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% block content%}
|
|
<div class="row">
|
|
<div class="col">
|
|
<h2>{% if content.id %}Dataset{% else %}Datasets{% endif %}</h2>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
{% if content.id %}
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Preview</th>
|
|
<th scope="col">Date/Time (UTC)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for image in content.data %}
|
|
<tr>
|
|
<td><img class="img-fluid img-thumbnail" src="{{url_for('static', filename='data/'~image.filename)}}" alt="{{ image.filename }}"></td>
|
|
<td>{{ image.datetime_created }}</td>
|
|
</tr>
|
|
{% endfor%}
|
|
</tbody>
|
|
{% else %}
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">Title</th>
|
|
<th scope="col">Date/Time (UTC)</th>
|
|
<th scope="col">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for dataset in content.data %}
|
|
<tr>
|
|
<th scope="row">{{ dataset.id }}</th>
|
|
<td>{% if dataset.title %}{{ dataset.title }}{% endif %}</td>
|
|
<td><a href="{{url_for('datasets')}}/{{ dataset.id }}">{{ dataset.datetime_created }}</a></td>
|
|
<td><a href="{{url_for('dataset_download', dataset_id=dataset.id)}}">Download</a> | <a href="{{url_for('dataset_delete', dataset_id=dataset.id)}}">Delete</a></td>
|
|
</tr>
|
|
{% endfor%}
|
|
</tbody>
|
|
{% endif %}
|
|
</table>
|
|
</div>
|
|
|
|
|
|
{% endblock %} |