Wiki source code of FilterStreamJob
Last modified by Sascha Hoppe on 2023/07/06 12:45
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{template name="job_macros.vm"/}} | ||
2 | |||
3 | {{velocity output="false"}} | ||
4 | #set ($discard = $xwiki.jsfx.use('uicomponents/job/job.js')) | ||
5 | {{/velocity}} | ||
6 | |||
7 | {{velocity}} | ||
8 | {{html}} | ||
9 | <div id="filter_job_status"> | ||
10 | #set($job = $services.filter.currentJob) | ||
11 | #if ($job) | ||
12 | #set ($jobStatusURL = $xwiki.getURL('FilterStreamJobJSON', 'get', $escapetool.url({ | ||
13 | 'outputSyntax': 'plain' | ||
14 | }))) | ||
15 | <div class="xcontent job-status" data-url="$jobStatusURL"> | ||
16 | #set($jobStatus = $job.status) | ||
17 | #set($finished = $jobStatus.state.name() == 'FINISHED') | ||
18 | #if (!$finished) | ||
19 | #displayJobProgressBar($jobStatus) | ||
20 | #else | ||
21 | #if (!$jobStatus.logTail.hasLogLevel('ERROR')) | ||
22 | <div class="box successmessage"> | ||
23 | Done. | ||
24 | </div> | ||
25 | #else | ||
26 | <div class="box errormessage"> | ||
27 | Error has been found during the conversion ! | ||
28 | </div> | ||
29 | #end | ||
30 | #end | ||
31 | #displayJobStatusLog($jobStatus true) | ||
32 | </div> | ||
33 | #end | ||
34 | </div> | ||
35 | {{/html}} | ||
36 | {{/velocity}} |