4a44ad0dbef31facd4077472045e7de579cdff71
[kivitendo-erp.git] / templates / webpages / task_server / show.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2 <h1>[% FORM.title %]</h1>
3
4 [%- INCLUDE 'common/flash.html' %]
5
6  <table id="background_job_history_details" class="background_job_details">
7   <tbody>
8    <tr class="listrow0">
9     <th>[%- LxERP.t8('Current status') %]</th>
10     <td>[% IF SELF.task_server.is_running %][%- LxERP.t8('running') %][%- ELSE %][%- LxERP.t8('not running') %][%- END %]</td>
11    </tr>
12
13 [%- IF last_command_output %]
14    <tr class="listrow1">
15     <th>[%- LxERP.t8('Last command output') %]</th>
16     <td><pre>[% HTML.escape(last_command_output) %]</pre></td>
17    </tr>
18 [%- END %]
19
20   </tbody>
21  </table>
22
23  <p>
24 [% IF SELF.task_server.is_running %]
25   <a href="[% SELF.url_for(action => 'stop') %]">[%- LxERP.t8('Stop task server') %]</a>
26 [%- ELSE %]
27   <a href="[% SELF.url_for(action => 'start') %]">[%- LxERP.t8('Start task server') %]</a>
28 [%- END %]
29   |
30   <a href="[% SELF.url_for(controller => 'BackgroundJob', action => 'list') %]">[%- LxERP.t8('View background jobs') %]</a>
31   |
32   <a href="[% SELF.url_for(controller => 'BackgroundJobHistory', action => 'list') %]">[%- LxERP.t8('View background job history') %]</a>
33  </p>