diff --git a/app/static/js/nopaque.lists.js b/app/static/js/nopaque.lists.js index 202a854f..56d7ab3b 100644 --- a/app/static/js/nopaque.lists.js +++ b/app/static/js/nopaque.lists.js @@ -36,7 +36,8 @@ class RessourceList extends List { item = this.get("id", pathArray[0])[0]; switch(pathArray[1]) { case "status": - item.values({status: operation.value}); + item.values({status: operation.value, + "analyse-link": ["analysing", "prepared", "start analysis"].includes(operation.value) ? `/corpora/${pathArray[0]}/analyse` : ""}); break; default: break; diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index fcf181c5..28b455df 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -35,7 +35,7 @@
@@ -163,7 +163,7 @@ } setStatus(status) { - let analyzeElement, compileElement, numFiles, progressIndicatorElement, statusElement; + let analyzeElement, buildElement, numFiles, progressIndicatorElement, statusElement; numFiles = (this.foreignCorpusFlag ? nopaque.foreignCorpora[this.corpusId] : nopaque.corpora[this.corpusId]).files.length; @@ -185,11 +185,11 @@ analyzeElement.classList.add("disabled", "hide"); } - compileElement = document.getElementById("compile"); + buildElement = document.getElementById("build"); if (status === "unprepared" && numFiles > 0) { - compileElement.classList.remove("disabled", "hide"); + buildElement.classList.remove("disabled", "hide"); } else { - compileElement.classList.add("disabled", "hide"); + buildElement.classList.add("disabled", "hide"); } } } diff --git a/app/templates/macros.jinja b/app/templates/macros.jinja index 0e8e4ab4..d61de68b 100644 --- a/app/templates/macros.jinja +++ b/app/templates/macros.jinja @@ -1,31 +1,30 @@ {% macro render_field(field) %} - - +