2018-07-30 11:12:41 -07:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block header %}
|
2018-08-18 08:35:23 -07:00
|
|
|
<link href="{{ url_for('static', filename='css/libs/bootstrap-table.min.css') }}" rel="stylesheet">
|
2018-07-30 11:12:41 -07:00
|
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="discover">
|
2020-02-02 19:22:00 -08:00
|
|
|
<h2>{{_('Tasks')}}</h2>
|
2021-08-27 05:27:35 -07:00
|
|
|
<table class="table table-no-bordered" id="tasktable" data-url="{{ url_for('web.get_email_status_json') }}" data-sort-name="starttime" data-sort-order="asc">
|
2018-07-30 11:12:41 -07:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
{% if g.user.role_admin() %}
|
2018-08-12 00:29:57 -07:00
|
|
|
<th data-halign="right" data-align="right" data-field="user" data-sortable="true">{{_('User')}}</th>
|
2018-07-30 11:12:41 -07:00
|
|
|
{% endif %}
|
2018-10-03 12:58:37 -07:00
|
|
|
<th data-halign="right" data-align="right" data-field="taskMessage" data-sortable="true">{{_('Task')}}</th>
|
2018-08-12 00:29:57 -07:00
|
|
|
<th data-halign="right" data-align="right" data-field="status" data-sortable="true">{{_('Status')}}</th>
|
|
|
|
<th data-halign="right" data-align="right" data-field="progress" data-sortable="true" data-sorter="elementSorter">{{_('Progress')}}</th>
|
2020-02-02 19:22:00 -08:00
|
|
|
<th data-halign="right" data-align="right" data-field="runtime" data-sortable="true" data-sort-name="rt">{{_('Run Time')}}</th>
|
|
|
|
<th data-halign="right" data-align="right" data-field="starttime" data-sortable="true" data-sort-name="id">{{_('Start Time')}}</th>
|
2018-08-12 00:29:57 -07:00
|
|
|
<th data-field="id" data-visible="false"></th>
|
|
|
|
<th data-field="rt" data-visible="false"></th>
|
2018-07-30 11:12:41 -07:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
<!--div class="btn btn-default" id="tasks_delete">{{_('Delete finished tasks')}}</div>
|
|
|
|
<div class="btn btn-default" id="tasks_hide">{{_('Hide all tasks')}}</div-->
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
2018-08-18 08:35:23 -07:00
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table.min.js') }}"></script>
|
2021-08-27 05:27:35 -07:00
|
|
|
<script src="{{ url_for('static', filename='js/table.js') }}"></script>
|
|
|
|
<script>
|
|
|
|
// ToDo: Move to js file
|
|
|
|
</script>
|
2018-07-30 11:12:41 -07:00
|
|
|
|
|
|
|
{% endblock %}
|