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) %}
-
- {{ field.name[0:1]|upper }}
- {{ field.label }}
- {{ field(data_length='255')|safe }}
-
- {% if field.errors %}
- {% for error in field.errors %}
- {{ error }}
- {% endfor %}
- {% endif %}
+
+ {{ field.label.text[0:1]|upper }}
+ {{ field.label }}
+ {{ field(data_length='255')|safe }}
+ {% for error in field.errors %}
+ {{ error }}
+ {% endfor %}
+
{% endmacro %}
{% macro render_field_with_value(field, corpus_file) %}
-
- {{ field.name[0:1]|upper }}
- {{ field.label }}
- {{ field(value=corpus_file[field.name], data_length='255')| safe }}
-
- {% if field.errors %}
- {% for error in field.errors %}
- {{ error }}
- {% endfor %}
- {% endif %}
+
+ {{ field.label.text[0:1]|upper }}
+ {{ field.label }}
+ {{ field(value=corpus_file[field.name], data_length='255')| safe }}
+ {% for error in field.errors %}
+ {{ error }}
+ {% endfor %}
+
{% endmacro %}
{% macro submit_button(input) %}
-
+
{% endmacro %}
diff --git a/app/templates/services/roadmap.html.j2 b/app/templates/services/roadmap.html.j2
index 59831d89..05b703fe 100644
--- a/app/templates/services/roadmap.html.j2
+++ b/app/templates/services/roadmap.html.j2
@@ -1,7 +1,7 @@