{%extends "base.html"%} {%from "stdout_output.html" import stdout_output%} {%block extrameta%} {%endblock%} {%block title%}Job Status{%endblock%} {%block contents%}

{{job_name}}

{{job_status}}: {{message}}
{%if job.get("stdout", "").split("\n\n") | length < 3 %} {%set lines = 0%} {%else%} {%set lines = (job.get("stdout", "").split("\n\n") | length / 3) %} {%endif%} {%set totallines = job.get("totallines", lines+3) | int %} {%if totallines > 1000 %} {%set fraction = ((lines*1000)/totallines) %} {%else%} {%set fraction = (lines/totallines)%} {%endif%} {{fraction*100}} {{"%.2f" | format(fraction * 100 | float)}}%
{{stdout_output(job)}} {%endblock%}