From ae1fbc0c56c8732fb85b555eccd4fddb5d8e5437 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 31 Aug 2022 04:44:28 +0300 Subject: Commit missing files. --- qc_app/templates/insert_error.html | 28 ++++++++++++++++++++++++++++ qc_app/templates/insert_success.html | 15 +++++++++++++++ qc_app/templates/stdout_output.html | 10 ++++++++++ 3 files changed, 53 insertions(+) create mode 100644 qc_app/templates/insert_error.html create mode 100644 qc_app/templates/insert_success.html create mode 100644 qc_app/templates/stdout_output.html (limited to 'qc_app/templates') diff --git a/qc_app/templates/insert_error.html b/qc_app/templates/insert_error.html new file mode 100644 index 0000000..56dd195 --- /dev/null +++ b/qc_app/templates/insert_error.html @@ -0,0 +1,28 @@ +{%extends "base.html"%} + +{%block title%}Data Insertion Failure{%endblock%} + +{%block contents%} +

Insertion Failure

+ +

+ There was an error inserting data into the database +

+ +

+ Please notify the developers of this issue when you encounter it, + providing the information below. +

+ +

Debugging Information

+ + + +

STDERR Output

+
+ {{job["stderr"]}} +
+ +{%endblock%} diff --git a/qc_app/templates/insert_success.html b/qc_app/templates/insert_success.html new file mode 100644 index 0000000..4406c66 --- /dev/null +++ b/qc_app/templates/insert_success.html @@ -0,0 +1,15 @@ +{%extends "base.html"%} +{%from "stdout_output.html" import stdout_output%} + +{%block title%}Insertion Success{%endblock%} + +{%block contents%} +

Insertion Success

+ +

Data inserted successfully!

+ +

The following queries were run:

+ +{{stdout_output(job)}} + +{%endblock%} diff --git a/qc_app/templates/stdout_output.html b/qc_app/templates/stdout_output.html new file mode 100644 index 0000000..f3fcde5 --- /dev/null +++ b/qc_app/templates/stdout_output.html @@ -0,0 +1,10 @@ +{%macro stdout_output(job)%} + +

STDOUT Output

+
+ {%for line in job.get("stdout", "").split("\n\n"):%} +

{{line}}

+ {%endfor%} +
+ +{%endmacro%} -- cgit v1.2.3