home_user.html 1.8 KB
Newer Older
1
{% extends "base_user.html" %}
Sabino Papagna's avatar
Sabino Papagna committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{% block title %}Home{% endblock %}
{% block content %}

    <div id="my_executions">
    <h3>Executions</h3>
    <table id="exec_list" class="app_list sortable">
    <thead>
    <tr>
        <th>ID</th>
        <th>Execution name</th>
        {% if is_admin %}
        <th>User</th>
        {% endif %}
        <th>Status</th>
        <th>Scheduled</th>
        <th>Started</th>
        <th>Finished</th>
        <th>Actions</th>
    </tr>
    </thead>
    <tbody>
        {% for e in executions %}
            <tr class="{{ loop.cycle('odd', 'even') }}">
                <td>{{ e.id }}</td>
                <td><a href="/executions/inspect/{{ e.id }}">{{ e.name }}</a></td>
                {% if is_admin %}
                <td>{{ e.user_id }}</td>
                {% endif %}
                <td>{{ e.status }}</td>
                <td><script>format_timestamp("{{ e.time_submit }}")</script></td>
                {% if e.time_start == None %}
                <td>not yet</td>
                {% else %}
                <td><script>format_timestamp("{{ e.time_start }}")</script></td>
                {% endif %}
                {% if e.time_end == None %}
                <td>not yet</td>
                {% else %}
                <td><script>format_timestamp("{{ e.time_end }}")</script></td>
                {% endif %}
                {% if e.status == "running" or e.status == "submitted" or e.status == "scheduled" %}
                    <td><a href="/executions/terminate/{{ e.id }}">Terminate</a></td>
                {% else %}
                    <td><a href="/executions/restart/{{ e.id }}">Restart</a>,
                    <a href="/executions/delete/{{ e.id }}">Delete</a></td>
                {% endif %}
            </tr>
        {% endfor %}
    </tbody>
    </table>
    </div>

{% endblock %}