aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-04-21 13:49:07 -0500
committerFrederick Muriuki Muriithi2025-04-21 13:49:07 -0500
commit3c948fe68dc4f40f158da92a150a300bd9ca2efb (patch)
tree2bc051c53674189bf55207915c7f5fecedc442b8 /uploader/templates
parent3dfc86e8fa5d2cdd41dc0df390734ebcaf06d99f (diff)
downloadgn-uploader-3c948fe68dc4f40f158da92a150a300bd9ca2efb.tar.gz
Implement rudimentary status update page for background jobs.
Diffstat (limited to 'uploader/templates')
-rw-r--r--uploader/templates/jobs/job-not-found.html11
-rw-r--r--uploader/templates/jobs/job-status.html26
2 files changed, 37 insertions, 0 deletions
diff --git a/uploader/templates/jobs/job-not-found.html b/uploader/templates/jobs/job-not-found.html
new file mode 100644
index 0000000..a71e66f
--- /dev/null
+++ b/uploader/templates/jobs/job-not-found.html
@@ -0,0 +1,11 @@
+{%extends "base.html"%}
+
+{%from "flash_messages.html" import flash_all_messages%}
+
+{%block title%}Background Jobs{%endblock%}
+
+{%block pagetitle%}Background Jobs{%endblock%}
+
+{%block contents%}
+<p>Could not find job with ID: {{job_id}}</p>
+{%endblock%}
diff --git a/uploader/templates/jobs/job-status.html b/uploader/templates/jobs/job-status.html
new file mode 100644
index 0000000..2750fcd
--- /dev/null
+++ b/uploader/templates/jobs/job-status.html
@@ -0,0 +1,26 @@
+{%extends "base.html"%}
+
+{%from "flash_messages.html" import flash_all_messages%}
+
+{%block extrameta%}
+<meta http-equiv="refresh" content="5" />
+{%endblock%}
+
+{%block title%}Background Jobs{%endblock%}
+
+{%block pagetitle%}Background Jobs{%endblock%}
+
+{%block contents%}
+
+<p>Status: {{job["metadata"]["status"]}}</p>
+<p>Status: {{job_type}}</p>
+
+<h2>STDOUT</h2>
+<pre>{{job["stdout"]}}</pre>
+
+<h2>STDERR</h2>
+<pre>{{job["stderr"]}}</pre>
+
+<hr />
+<p>The Job: {{job["metadata"]}}</p>
+{%endblock%}