diff options
author | Frederick Muriuki Muriithi | 2022-08-31 04:44:28 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-08-31 04:44:28 +0300 |
commit | ae1fbc0c56c8732fb85b555eccd4fddb5d8e5437 (patch) | |
tree | 97d9e23c50c557e18c7ae0955aed68d5baa130ff /qc_app | |
parent | ddad176111e962e8b773d8dd7467e8536ba4e5b4 (diff) | |
download | gn-uploader-ae1fbc0c56c8732fb85b555eccd4fddb5d8e5437.tar.gz |
Commit missing files.
Diffstat (limited to 'qc_app')
-rw-r--r-- | qc_app/templates/insert_error.html | 28 | ||||
-rw-r--r-- | qc_app/templates/insert_success.html | 15 | ||||
-rw-r--r-- | qc_app/templates/stdout_output.html | 10 |
3 files changed, 53 insertions, 0 deletions
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%} +<h1 class="heading">Insertion Failure</h1> + +<p> + There was an error inserting data into the database +</p> + +<p> + Please notify the developers of this issue when you encounter it, + providing the information below. +</p> + +<h4>Debugging Information</h4> + +<ul> + <li><strong>job id</strong>: {{job["job_id"]}}</li> +</ul> + +<h4>STDERR Output</h4> +<div class="cli-output"> + {{job["stderr"]}} +</div> + +{%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%} +<h1 class="heading">Insertion Success</h1> + +<p>Data inserted successfully!</p> + +<p>The following queries were run:</p> + +{{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)%} + +<h4>STDOUT Output</h4> +<div class="cli-output"> + {%for line in job.get("stdout", "").split("\n\n"):%} + <p>{{line}}</p> + {%endfor%} +</div> + +{%endmacro%} |