aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-12-19 19:37:31 +0300
committerFrederick Muriuki Muriithi2023-12-19 19:37:31 +0300
commit098cc4ea76c5c6fbb220fe9c8302a08123832cb0 (patch)
tree474344090a8cb24029327513135a5f910a89d09f /qc_app/templates
parent0ff83673e99a1163dfb9feb440d352879872eee7 (diff)
downloadgn-uploader-098cc4ea76c5c6fbb220fe9c8302a08123832cb0.tar.gz
Commit missing templates.
Diffstat (limited to 'qc_app/templates')
-rw-r--r--qc_app/templates/cli-output.html8
-rw-r--r--qc_app/templates/samples/upload-failure.html27
-rw-r--r--qc_app/templates/samples/upload-progress.html22
-rw-r--r--qc_app/templates/samples/upload-success.html18
4 files changed, 75 insertions, 0 deletions
diff --git a/qc_app/templates/cli-output.html b/qc_app/templates/cli-output.html
new file mode 100644
index 0000000..33fb73b
--- /dev/null
+++ b/qc_app/templates/cli-output.html
@@ -0,0 +1,8 @@
+{%macro cli_output(job, stream)%}
+
+<h4>{{stream | upper}} Output</h4>
+<div class="cli-output">
+ <pre>{{job.get(stream, "")}}</pre>
+</div>
+
+{%endmacro%}
diff --git a/qc_app/templates/samples/upload-failure.html b/qc_app/templates/samples/upload-failure.html
new file mode 100644
index 0000000..09e2ecf
--- /dev/null
+++ b/qc_app/templates/samples/upload-failure.html
@@ -0,0 +1,27 @@
+{%extends "base.html"%}
+{%from "cli-output.html" import cli_output%}
+
+{%block title%}Samples Upload Failure{%endblock%}
+
+{%block contents%}
+<h1 class="heading">{{job.job_name}}</h2>
+
+<p>There was a failure attempting to upload the samples.</p>
+
+<p>Here is some information to help with debugging the issue. Provide this
+ information to the developer/maintainer.</p>
+
+<h3>Debugging Information</h3>
+<ul>
+ <li><strong>job id</strong>: {{job.job_id}}</li>
+ <li><strong>status</strong>: {{job.status}}</li>
+ <li><strong>job type</strong>: {{job["job-type"]}}</li>
+</ul>
+
+<h4>stdout</h4>
+{{cli_output(job, "stdout")}}
+
+<h4>stderr</h4>
+{{cli_output(job, "stderr")}}
+
+{%endblock%}
diff --git a/qc_app/templates/samples/upload-progress.html b/qc_app/templates/samples/upload-progress.html
new file mode 100644
index 0000000..7bb02be
--- /dev/null
+++ b/qc_app/templates/samples/upload-progress.html
@@ -0,0 +1,22 @@
+{%extends "base.html"%}
+{%from "cli-output.html" import cli_output%}
+
+{%block extrameta%}
+<meta http-equiv="refresh" content="5">
+{%endblock%}
+
+{%block title%}Job Status{%endblock%}
+
+{%block contents%}
+<h1 class="heading">{{job.job_name}}</h2>
+
+<p>
+<strong>status</strong>:
+<span>{{job["status"]}} ({{job.get("message", "-")}})</span><br />
+</p>
+
+<p>saving to database...</p>
+
+{{cli_output(job, "stdout")}}
+
+{%endblock%}
diff --git a/qc_app/templates/samples/upload-success.html b/qc_app/templates/samples/upload-success.html
new file mode 100644
index 0000000..cb745c3
--- /dev/null
+++ b/qc_app/templates/samples/upload-success.html
@@ -0,0 +1,18 @@
+{%extends "base.html"%}
+{%from "cli-output.html" import cli_output%}
+
+{%block title%}Job Status{%endblock%}
+
+{%block contents%}
+<h1 class="heading">{{job.job_name}}</h2>
+
+<p>
+<strong>status</strong>:
+<span>{{job["status"]}} ({{job.get("message", "-")}})</span><br />
+</p>
+
+<p>Successfully uploaded the samples.</p>
+
+{{cli_output(job, "stdout")}}
+
+{%endblock%}