mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/nopaque into development
update breadcrumbs
This commit is contained in:
commit
2ef5063a44
@ -45,9 +45,6 @@ class ContributionBaseForm(FlaskForm):
|
||||
compatible_service_versions = SelectMultipleField(
|
||||
'Compatible service versions'
|
||||
)
|
||||
shared = BooleanField(
|
||||
'Shared'
|
||||
)
|
||||
submit = SubmitField()
|
||||
|
||||
|
||||
|
@ -27,7 +27,6 @@ from .forms import (
|
||||
|
||||
@bp.before_request
|
||||
@login_required
|
||||
@permission_required(Permission.CONTRIBUTE)
|
||||
def before_request():
|
||||
pass
|
||||
|
||||
@ -105,7 +104,7 @@ def create_tesseract_ocr_pipeline_model():
|
||||
publisher_url=form.publisher_url.data,
|
||||
publishing_url=form.publishing_url.data,
|
||||
publishing_year=form.publishing_year.data,
|
||||
shared=form.shared.data,
|
||||
shared=False,
|
||||
title=form.title.data,
|
||||
version=form.version.data,
|
||||
user=current_user
|
||||
@ -127,6 +126,7 @@ def create_tesseract_ocr_pipeline_model():
|
||||
)
|
||||
|
||||
@bp.route('/tesseract-ocr-pipeline-models/<hashid:tesseract_ocr_pipeline_model_id>/toggle-public-status', methods=['POST'])
|
||||
@permission_required(Permission.CONTRIBUTE)
|
||||
def toggle_tesseract_ocr_pipeline_model_public_status(tesseract_ocr_pipeline_model_id):
|
||||
tesseract_ocr_pipeline_model = TesseractOCRPipelineModel.query.get_or_404(tesseract_ocr_pipeline_model_id)
|
||||
if not (tesseract_ocr_pipeline_model.user == current_user or current_user.is_administrator()):
|
||||
@ -201,7 +201,7 @@ def create_spacy_nlp_pipeline_model():
|
||||
publisher_url=form.publisher_url.data,
|
||||
publishing_url=form.publishing_url.data,
|
||||
publishing_year=form.publishing_year.data,
|
||||
shared=form.shared.data,
|
||||
shared=False,
|
||||
title=form.title.data,
|
||||
version=form.version.data,
|
||||
user=current_user
|
||||
@ -223,6 +223,7 @@ def create_spacy_nlp_pipeline_model():
|
||||
)
|
||||
|
||||
@bp.route('/spacy-nlp-pipeline-models/<hashid:spacy_nlp_pipeline_model_id>/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()):
|
||||
|
@ -12,6 +12,7 @@
|
||||
<li><a href="{{ url_for('main.dashboard') }}"><i class="material-icons">dashboard</i>Dashboard</a></li>
|
||||
<li><a href="{{ url_for('main.dashboard', _anchor='corpora') }}" style="padding-left: 47px;"><i class="nopaque-icons">I</i>My Corpora</a></li>
|
||||
<li><a href="{{ url_for('main.dashboard', _anchor='jobs') }}" style="padding-left: 47px;"><i class="nopaque-icons">J</i>My Jobs</a></li>
|
||||
<li><a href="{{ url_for('contributions.contributions') }}"><i class="material-icons">new_label</i>Contribute</a></li>
|
||||
<li><div class="divider"></div></li>
|
||||
<li><a class="subheader">Processes & Services</a></li>
|
||||
<li class="service-color service-color-border border-darken" data-service="file-setup-pipeline" style="border-left: 10px solid; margin-top: 5px;"><a href="{{ url_for('services.file_setup_pipeline') }}"><i class="nopaque-icons service-icon" data-service="file-setup-pipeline"></i>File setup</a></li>
|
||||
@ -34,7 +35,4 @@
|
||||
{% if current_user.can(Permission.USE_API) %}
|
||||
<li><a href="{{ url_for('apifairy.docs') }}"><i class="material-icons">api</i>API</a></li>
|
||||
{% endif %}
|
||||
{% if current_user.can(Permission.CONTRIBUTE) %}
|
||||
<li><a href="{{ url_for('contributions.contributions') }}"><i class="material-icons">new_label</i>Contribute</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
@ -29,6 +29,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="col s4">
|
||||
<div class="card extension-selector hoverable service-color" data-service="transkribus-htr-pipeline">
|
||||
<a href="" style="position: absolute; width: 100%; height: 100%;"></a>
|
||||
@ -38,6 +39,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
{% endblock page_content %}
|
||||
|
@ -72,11 +72,6 @@
|
||||
<div class="col s12 l6">
|
||||
{{ wtf.render_field(form.compatible_service_versions) }}
|
||||
</div>
|
||||
<div class="col s12 l6 right-align" style="padding-right:20px;">
|
||||
<p></p>
|
||||
<br>
|
||||
{{ wtf.render_field(form.shared) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
|
@ -69,11 +69,6 @@
|
||||
<div class="col s12 l6">
|
||||
{{ wtf.render_field(form.compatible_service_versions) }}
|
||||
</div>
|
||||
<div class="col s12 l6 right-align" style="padding-right:20px;">
|
||||
<p></p>
|
||||
<br>
|
||||
{{ wtf.render_field(form.shared) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
|
@ -44,11 +44,6 @@
|
||||
<div class="col s12 l6">
|
||||
{{ wtf.render_field(form.compatible_service_versions) }}
|
||||
</div>
|
||||
<div class="col s12 l6 right-align" style="padding-right:20px;">
|
||||
<p></p>
|
||||
<br>
|
||||
{{ wtf.render_field(form.shared) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
|
@ -41,11 +41,6 @@
|
||||
<div class="col s12 l6">
|
||||
{{ wtf.render_field(form.compatible_service_versions) }}
|
||||
</div>
|
||||
<div class="col s12 l6 right-align" style="padding-right:20px;">
|
||||
<p></p>
|
||||
<br>
|
||||
{{ wtf.render_field(form.shared) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action right-align">
|
||||
|
Loading…
Reference in New Issue
Block a user