6 Commits
1.1.1 ... 1.1.2

Author SHA1 Message Date
Patrick Jentsch
d023e0a8f3 Patrick Jentsch's avatar
Bump nopaque version 1.1.1 -> 1.1.2
2025-09-24 15:55:26 +02:00
Patrick Jentsch
ff86e35bc7 Merge branch 'development' 2025-09-24 15:48:48 +02:00
Patrick Jentsch
2d3e00745e seperate user and public models more clearly 2025-09-24 15:44:47 +02:00
Patrick Jentsch
cdc9a4b6e9 Update copyright year 2025-09-24 14:59:24 +02:00
Patrick Jentsch
bf130b117d Fix wrong color code on contributions lists 2025-09-24 14:59:06 +02:00
Patrick Jentsch
97fd9db0ae Fix wrong settings link on own profile page. 2025-09-24 14:46:31 +02:00
6 changed files with 12 additions and 12 deletions

View File

@@ -87,14 +87,14 @@ class CreateTesseractOCRPipelineJobForm(CreateJobBaseForm):
user_models = [
x for x in current_user.tesseract_ocr_pipeline_models.order_by(TesseractOCRPipelineModel.title).all()
]
models = [
public_models = [
x for x in TesseractOCRPipelineModel.query.order_by(TesseractOCRPipelineModel.title).all()
if version in x.compatible_service_versions and (x.is_public == True or x.user == current_user)
if version in x.compatible_service_versions and x.is_public == True
]
self.model.choices = {
'': [('', 'Choose your option')],
'Your models': [(x.hashid, f'{x.title} [{x.version}]') for x in user_models] if user_models else [(0, 'Nothing here yet...')],
'Public models': [(x.hashid, f'{x.title} [{x.version}]') for x in models]
'Public models': [(x.hashid, f'{x.title} [{x.version}]') for x in public_models]
}
self.model.default = ''
self.version.choices = [(x, x) for x in service_manifest['versions']]
@@ -176,14 +176,14 @@ class CreateSpacyNLPPipelineJobForm(CreateJobBaseForm):
user_models = [
x for x in current_user.spacy_nlp_pipeline_models.order_by(SpaCyNLPPipelineModel.title).all()
]
models = [
x for x in SpaCyNLPPipelineModel.query.filter(SpaCyNLPPipelineModel.user != current_user, SpaCyNLPPipelineModel.is_public == True).order_by(SpaCyNLPPipelineModel.title).all()
if version in x.compatible_service_versions
public_models = [
x for x in SpaCyNLPPipelineModel.query.order_by(SpaCyNLPPipelineModel.title).all()
if version in x.compatible_service_versions and x.is_public == True
]
self.model.choices = {
'': [('', 'Choose your option')],
'Your models': [(x.hashid, f'{x.title} [{x.version}]') for x in user_models] if user_models else [(0, 'Nothing here yet...')],
'Public models': [(x.hashid, f'{x.title} [{x.version}]') for x in models]
'Public models': [(x.hashid, f'{x.title} [{x.version}]') for x in public_models]
}
self.model.default = ''
self.version.choices = [(x, x) for x in service_manifest['versions']]

View File

@@ -33,7 +33,7 @@ nopaque.resource_lists.SpaCyNLPPipelineModelList = class SpaCyNLPPipelineModelLi
</td>
<td class="right-align">
<a class="list-action-trigger btn-floating red waves-effect waves-light" data-list-action="delete-request"><i class="material-icons">delete</i></a>
<a class="list-action-trigger btn-floating service-color darken waves-effect waves-light service-2" data-list-action="view"><i class="material-icons">send</i></a>
<a class="list-action-trigger btn-floating waves-effect waves-light service-2" data-list-action="view"><i class="material-icons">send</i></a>
</td>
</tr>
`.trim();

View File

@@ -33,7 +33,7 @@ nopaque.resource_lists.TesseractOCRPipelineModelList = class TesseractOCRPipelin
</td>
<td class="right-align">
<a class="list-action-trigger btn-floating red waves-effect waves-light" data-list-action="delete-request"><i class="material-icons">delete</i></a>
<a class="list-action-trigger btn-floating service-color darken waves-effect waves-light service-2" data-list-action="view"><i class="material-icons">send</i></a>
<a class="list-action-trigger btn-floating waves-effect waves-light service-2" data-list-action="view"><i class="material-icons">send</i></a>
</td>
</tr>
`.trim();

View File

@@ -39,7 +39,7 @@
<div class="footer-copyright">
<div class="container">
© 2024 Bielefeld University
© 2025 Bielefeld University
<a class="grey-text text-lighten-4 right" href="https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque/-/releases/{{ config.NOPAQUE_VERSION }}">Version {{ config.NOPAQUE_VERSION }}</a>
</div>
</div>

View File

@@ -90,7 +90,7 @@
{% if current_user == user %}
<div class="card-action">
<p class="right-align">
<a class="btn waves-effect waves-light" href="{{ url_for('settings.settings') }}">Edit profile</a>
<a class="btn waves-effect waves-light" href="{{ url_for('settings.index') }}">Edit profile</a>
</p>
</div>
{% endif %}

View File

@@ -94,5 +94,5 @@ class Config:
NOPAQUE_READCOOP_USERNAME = os.environ.get('NOPAQUE_READCOOP_USERNAME')
NOPAQUE_READCOOP_PASSWORD = os.environ.get('NOPAQUE_READCOOP_PASSWORD')
NOPAQUE_VERSION='1.1.1'
NOPAQUE_VERSION='1.1.2'
# endregion nopaque