diff options
Diffstat (limited to 'templates/status.tpl')
-rw-r--r-- | templates/status.tpl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/status.tpl b/templates/status.tpl index 2665861..939f77d 100644 --- a/templates/status.tpl +++ b/templates/status.tpl @@ -104,7 +104,9 @@ <th>Path</th> <th>Interval</th> <th>Due</th> +<th>Last run exit</th> <th>Job?</th> + </tr> % for i, spec in enumerate(run_queue): % obj = json.loads(spec['text']) @@ -118,7 +120,15 @@ <td>{{spec['path']}}</td> % end <td>{{spec['interval_nice']}}</td> -<td>{{spec['due_nice']}}</td> +<td nowrap>{{spec['due_nice']}}</td> +% if publish_failures and spec['last_run_exit'] is not None and spec['last_run_error'] != "": +<td><details> + <summary>{{spec['last_run_exit']}}: Show log</summary> + <p><pre>{{spec['last_run_error']}}</pre></p> +</details></td> +% else: +<td>{{spec['last_run_exit']}}</td> +% end % if spec['running_job'] and links: <td><a href="/1.0/job-html/{{spec['running_job']}}">{{spec['running_job']}}</a></td> % else: |