Skip to content

Commit

Permalink
fix: change dataset.get_uvlhub_doi() by url_for('dataset.subdomain_in…
Browse files Browse the repository at this point in the history
…dex', doi=dataset.ds_meta_data.dataset_doi) }}
  • Loading branch information
luchersol committed Dec 11, 2024
1 parent 40a1338 commit 34a70b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/modules/dataset/templates/dataset/list_datasets.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ <h1 class="h3 mb-3">My datasets</h1>
{% for dataset in datasets %}
<tr>
<td>
<a href="{{ dataset.get_uvlhub_doi() }}">
<a href="{{ url_for('dataset.subdomain_index', doi=dataset.ds_meta_data.dataset_doi) }}">
{{ dataset.ds_meta_data.title }}
</a>
</td>
<td>{{ dataset.ds_meta_data.description }}</td>
<td>{{ dataset.ds_meta_data.publication_type.name.replace('_', ' ').title() }}</td>
<td><a href="{{ dataset.get_uvlhub_doi() }}"
<td><a href="{{ url_for('dataset.subdomain_index', doi=dataset.ds_meta_data.dataset_doi) }}"
target="_blank">{{ dataset.get_uvlhub_doi() }}</a></td>
<td>
<a href="{{ dataset.get_uvlhub_doi() }}">
<a href="{{ url_for('dataset.subdomain_index', doi=dataset.ds_meta_data.dataset_doi) }}">
<i data-feather="eye"></i>
</a>
<a href="{{ url_for('dataset.download_dataset', dataset_id=dataset.id) }}">
Expand Down
2 changes: 1 addition & 1 deletion app/modules/profile/templates/profile/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1 class="h3 mb-3">User datasets</h1>
<td>

{% if dataset.ds_meta_data.dataset_doi %}
<a href="{{ dataset.get_uvlhub_doi() }}">
<a href="{{ url_for('dataset.subdomain_index', doi=dataset.ds_meta_data.dataset_doi) }}">
{{ dataset.ds_meta_data.title }}
</a>
{% else %}
Expand Down
6 changes: 3 additions & 3 deletions app/modules/public/templates/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="h2 mb-3">
<div class="d-flex align-items-center justify-content-between">
<h2>

<a href="{{ dataset.get_uvlhub_doi() }}">
<a href="{{ url_for('dataset.subdomain_index', doi=dataset.ds_meta_data.dataset_doi) }}">
{{ dataset.ds_meta_data.title }}
</a>

Expand Down Expand Up @@ -60,7 +60,7 @@ <h2>
<div class="row mb-2">

<div class="col-12">
<a href="{{ dataset.get_uvlhub_doi() }}">{{ dataset.get_uvlhub_doi() }}</a>
<a href="{{ url_for('dataset.subdomain_index', doi=dataset.ds_meta_data.dataset_doi) }}">{{ dataset.get_uvlhub_doi() }}</a>
<div id="dataset_doi_uvlhub_{{ dataset.id }}" style="display: none">
{{ dataset.get_uvlhub_doi() }}
</div>
Expand All @@ -86,7 +86,7 @@ <h2>

<div class="row mt-4">
<div class="col-12">
<a href="{{ dataset.get_uvlhub_doi() }}" class="btn btn-outline-primary btn-sm"
<a href="{{ url_for('dataset.subdomain_index', doi=dataset.ds_meta_data.dataset_doi) }}" class="btn btn-outline-primary btn-sm"
style="border-radius: 5px;">
<i data-feather="eye" class="center-button-icon"></i>
View dataset
Expand Down

0 comments on commit 34a70b6

Please sign in to comment.