From 098cc4ea76c5c6fbb220fe9c8302a08123832cb0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 19 Dec 2023 19:37:31 +0300 Subject: Commit missing templates. --- qc_app/templates/cli-output.html | 8 ++++++++ qc_app/templates/samples/upload-failure.html | 27 +++++++++++++++++++++++++++ qc_app/templates/samples/upload-progress.html | 22 ++++++++++++++++++++++ qc_app/templates/samples/upload-success.html | 18 ++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 qc_app/templates/cli-output.html create mode 100644 qc_app/templates/samples/upload-failure.html create mode 100644 qc_app/templates/samples/upload-progress.html create mode 100644 qc_app/templates/samples/upload-success.html (limited to 'qc_app') 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)%} + +
{{job.get(stream, "")}}+
There was a failure attempting to upload the samples.
+ +Here is some information to help with debugging the issue. Provide this + information to the developer/maintainer.
+ +
+status:
+{{job["status"]}} ({{job.get("message", "-")}})
+
saving to database...
+ +{{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%} +
+status:
+{{job["status"]}} ({{job.get("message", "-")}})
+
Successfully uploaded the samples.
+ +{{cli_output(job, "stdout")}} + +{%endblock%} -- cgit v1.2.3