about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-01-08 14:23:55 -0600
committerFrederick Muriuki Muriithi2026-01-08 14:23:55 -0600
commitba3d7e74008e1ccc5ca8f887cfb4fcff30d40bba (patch)
tree3571c71bd8e1dfb875db41c30bc1808bce07d16f
parent8e8218e4737f251adaf6c2977d0e1e1775dfed93 (diff)
downloadgn-uploader-ba3d7e74008e1ccc5ca8f887cfb4fcff30d40bba.tar.gz
Provide UI to "re-launch" stopped jobs.
Provide a UI element for future implementation of the feature that
will allow a job that has been stopped to be re-run. In reality, the
job will not actuall be re-run, rather, a copy of the job will be
made, and the copy run instead.
-rw-r--r--uploader/templates/background-jobs/job-summary.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/uploader/templates/background-jobs/job-summary.html b/uploader/templates/background-jobs/job-summary.html
index e46f963..fe62d5d 100644
--- a/uploader/templates/background-jobs/job-summary.html
+++ b/uploader/templates/background-jobs/job-summary.html
@@ -36,6 +36,14 @@
        class="btn btn-danger"
        title="Delete this job.">delete</a>
   </div>
+
+  {%if job.metadata.status in ("stopped",)%}
+  <div class="col">
+    <a href="#"
+       class="btn btn-warning not-implemented"
+       title="Create a new copy of this job, and run the copy.">Run Copy</a>
+  </div>
+  {%endif%}
 </div>
 
 <div class="row">