Files
POC-Java-www/pocwww/templates/runstatus.jinja2
2017-03-09 18:12:18 -06:00

40 lines
1.3 KiB
Django/Jinja

{% from 'pagination.jinja2' import render_pagination %}
{% extends "layout.jinja2" %}
{% block content %}
<div class="content">
<div class="row">
<div class="col-xs-12">
<h2>Run Status Log</h2>
{% if data|length > 0 %}
<div style="text-center">
{{render_pagination(pagination, "/runstatus")}}
</div>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Timestamp</th>
<th>Status</th>
<th>Initiator</th>
</tr>
</thead>
<tbody>
{% for d in data %}
<tr>
<td>{{d.timestamp | datetime('medium')}}</td>
<td>{{d.status}}</td>
<td>{{d.initiator}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<h3>No statuses stored yet...</h3>
{% endif %}
</div>
</div>
</div>
{% endblock content %}