diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index b1156a6c..b6058be5 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -7,7 +7,20 @@

{{ corpus.title }}

{{ corpus.description }}

- +
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -150,8 +163,12 @@ } setStatus(status) { - let analyseBtn, statusElement; + let analyseBtn, progressIndicator, statusElement; + if (status != "preparable" && status != "preparing") { + progressIndicator = document.getElementById("progress-indicator"); + progressIndicator.classList.add("hide"); + } statusElement = document.getElementById("status"); statusElement.dataset.status = status; analyseBtn = document.getElementById('analyse'); diff --git a/app/templates/jobs/job.html.j2 b/app/templates/jobs/job.html.j2 index 674a566f..77ea9a5d 100644 --- a/app/templates/jobs/job.html.j2 +++ b/app/templates/jobs/job.html.j2 @@ -8,7 +8,20 @@

{{ job.title }}

{{ job.description }}

- +
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -220,12 +233,15 @@ ` ); } - M.Collapsible.getInstance(document.getElementById("job-list")).open(1); } setStatus(status) { - let statusElement; - + let progressIndicator, statusElement; + if (status === "complete") { + progressIndicator = document.getElementById("progress-indicator"); + progressIndicator.classList.add("hide"); + M.Collapsible.getInstance(document.getElementById("job-list")).open(1); + } statusElement = document.getElementById("status"); statusElement.dataset.status = status; }