]> git.imager.perl.org - bse.git/blob - site/templates/admin/back/list.tmpl
d882b19b4900e668aab8269a4c22824a1acfe172
[bse.git] / site / templates / admin / back / list.tmpl
1 <:wrap admin/xbase.tmpl title=>"Background tasks", showtitle => 1 :>
2 <:ifMessage:><p><:message:></p><:or:><:eif:>
3 <table class="editform">
4 <tr>
5   <th>Task</th>
6   <th>Status</th>
7   <th>Last Started</th>
8   <th>Last Completed</th>
9   <th>Completion Status</th>
10   <th>Admin</th>
11 </tr>
12 <:if Tasks:>
13 <:iterator begin tasks:>
14 <tr>
15   <td><:task description:></td>
16   <td><:ifTask running:>Running (<:task task_pid:>)<:or:>Stopped<:eif:></td>
17   <td><:task last_started:></td>
18   <td><:task last_completion:></td>
19   <td><:switch:><:case Eq [task last_exit] "":><:case task last_exit:>Failed<:case default:>Success<:endswitch:></td>
20   <td><:if Task_running:>
21 <:ifTask stoppable:><a href="<:script:>?a_stop=1&amp;id=<:task id:>">Stop</a><:or:><:eif:>
22
23 <:or Task_running:>
24 <a href="<:script:>?a_start=1&amp;id=<:task id:>">Start</a>
25 <:eif Task_running:>
26 <a href="<:script:>?a_detail=1&amp;id=<:task id:>">Details</a>
27 </td>
28 </tr>
29 <:iterator end tasks:>
30 <:or Tasks:>
31 <tr>
32   <td colspan="3">No tasks available.</td>
33 </tr>
34 <:eif Tasks:>
35 </table>