aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/job-status.html
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates/phenotypes/job-status.html')
-rw-r--r--uploader/templates/phenotypes/job-status.html71
1 files changed, 70 insertions, 1 deletions
diff --git a/uploader/templates/phenotypes/job-status.html b/uploader/templates/phenotypes/job-status.html
index d531a71..30316b5 100644
--- a/uploader/templates/phenotypes/job-status.html
+++ b/uploader/templates/phenotypes/job-status.html
@@ -30,8 +30,32 @@
{%block contents%}
{%if job%}
+<h4 class="subheading">Progress</h4>
<div class="row">
- <p><strong>Status:</strong> {{job.status}}</p>
+ <p><strong>Process Status:</strong> {{job.status}}</p>
+ {%if metadata%}
+ <table class="table">
+ <thead>
+ <tr>
+ <th>File</th>
+ <th>Status</th>
+ <th>Lines Processed</th>
+ <th>Total Errors</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {%for file,meta in metadata.items()%}
+ <tr>
+ <td>{{file}}</td>
+ <td>{{meta.status}}</td>
+ <td>{{meta.linecount}}</td>
+ <td>{{meta["total-errors"]}}</td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+ {%endif%}
{%if job.status in ("completed:success", "success")%}
<p><a href="#"
class="not-implemented btn btn-primary"
@@ -40,6 +64,50 @@
{%endif%}
</div>
+<h4 class="subheading">Errors</h4>
+<div class="row" style="max-height: 20em; overflow: auto;">
+ {%if errors | length == 0 %}
+ <p class="text-info">
+ <span class="glyphicon glyphicon-info-sign"></span>
+ No errors found so far
+ </p>
+ {%else%}
+ <table class="table">
+ <thead>
+ <tr>
+ <th>File</th>
+ <th>Row</th>
+ <th>Column</th>
+ <th>Value</th>
+ <th>Message</th>
+ </thead>
+
+ <tbody style="font-size: 0.9em;">
+ {%for error in errors%}
+ <tr>
+ <td>{{error.filename}}</td>
+ <td>{{error.rowtitle}}</td>
+ <td>{{error.coltitle}}</td>
+ <td>{%if error.cellvalue | length > 25%}
+ {{error.cellvalue[0:24]}}&hellip;
+ {%else%}
+ {{error.cellvalue}}
+ {%endif%}
+ </td>
+ <td>
+ {%if error.message | length > 250 %}
+ {{error.message[0:249]}}&hellip;
+ {%else%}
+ {{error.message}}
+ {%endif%}
+ </td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+ {%endif%}
+</div>
+
<div class="row">
{{cli_output(job, "stdout")}}
</div>
@@ -47,6 +115,7 @@
<div class="row">
{{cli_output(job, "stderr")}}
</div>
+
{%else%}
<div class="row">
<h3 class="text-danger">No Such Job</h3>