/toggle-public-status', methods=['POST'])
+@permission_required(Permission.CONTRIBUTE)
def toggle_spacy_nlp_pipeline_model_public_status(spacy_nlp_pipeline_model_id):
spacy_nlp_pipeline_model = SpaCyNLPPipelineModel.query.get_or_404(spacy_nlp_pipeline_model_id)
if not (spacy_nlp_pipeline_model.user == current_user or current_user.is_administrator()):
diff --git a/app/templates/_sidenav.html.j2 b/app/templates/_sidenav.html.j2
index 553eb9db..b0ea6de8 100644
--- a/app/templates/_sidenav.html.j2
+++ b/app/templates/_sidenav.html.j2
@@ -12,6 +12,7 @@
dashboardDashboard
IMy Corpora
JMy Jobs
+ new_labelContribute
File setup
@@ -34,7 +35,4 @@
{% if current_user.can(Permission.USE_API) %}
apiAPI
{% endif %}
- {% if current_user.can(Permission.CONTRIBUTE) %}
- new_labelContribute
- {% endif %}
diff --git a/app/templates/contributions/contributions.html.j2 b/app/templates/contributions/contributions.html.j2
index 64f1fac6..4e513b9e 100644
--- a/app/templates/contributions/contributions.html.j2
+++ b/app/templates/contributions/contributions.html.j2
@@ -29,6 +29,7 @@
+
{% endblock page_content %}
diff --git a/app/templates/contributions/create_spacy_nlp_pipeline_model.html.j2 b/app/templates/contributions/create_spacy_nlp_pipeline_model.html.j2
index 9a0bcddd..c1f452d3 100644
--- a/app/templates/contributions/create_spacy_nlp_pipeline_model.html.j2
+++ b/app/templates/contributions/create_spacy_nlp_pipeline_model.html.j2
@@ -72,11 +72,6 @@
{{ wtf.render_field(form.compatible_service_versions) }}
-
-
-
- {{ wtf.render_field(form.shared) }}
-
diff --git a/app/templates/contributions/create_tesseract_ocr_pipeline_model.html.j2 b/app/templates/contributions/create_tesseract_ocr_pipeline_model.html.j2
index 9a04b535..e4c5a04b 100644
--- a/app/templates/contributions/create_tesseract_ocr_pipeline_model.html.j2
+++ b/app/templates/contributions/create_tesseract_ocr_pipeline_model.html.j2
@@ -69,11 +69,6 @@
{{ wtf.render_field(form.compatible_service_versions) }}
-
-
-
- {{ wtf.render_field(form.shared) }}
-
diff --git a/app/templates/contributions/spacy_nlp_pipeline_model.html.j2 b/app/templates/contributions/spacy_nlp_pipeline_model.html.j2
index 718fe7de..32f27303 100644
--- a/app/templates/contributions/spacy_nlp_pipeline_model.html.j2
+++ b/app/templates/contributions/spacy_nlp_pipeline_model.html.j2
@@ -44,11 +44,6 @@
{{ wtf.render_field(form.compatible_service_versions) }}
-
-
-
- {{ wtf.render_field(form.shared) }}
-
diff --git a/app/templates/contributions/tesseract_ocr_pipeline_model.html.j2 b/app/templates/contributions/tesseract_ocr_pipeline_model.html.j2
index ae2432dc..02322d8a 100644
--- a/app/templates/contributions/tesseract_ocr_pipeline_model.html.j2
+++ b/app/templates/contributions/tesseract_ocr_pipeline_model.html.j2
@@ -41,11 +41,6 @@
{{ wtf.render_field(form.compatible_service_versions) }}
-
-
-
- {{ wtf.render_field(form.shared) }}
-