Skip to content

Commit

Permalink
Replace orcid image with static file
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed Dec 18, 2024
1 parent 7f6e495 commit 3b46b5e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/static/img/ORCID-iD_icon_vector.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions app/templates/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h1>{{ first_name }} {{ last_name }}
{% if orcid %}
<a href="{{ orcid }}">
<img alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="24" height="24" />
<img alt="ORCID logo" src="{{url_for('static', path='img/ORCID-iD_icon_vector.svg')}}" width="24" height="24" />
</a>
{% endif %}
</h1>
Expand Down Expand Up @@ -50,8 +50,7 @@ <h5 class="card-title">Top Collaborators for {{ type|title }}</h5>
<li class="list-group-item"><a href="{{ url_for('author', id=colab.uuid) }}">{{ colab.first_name}} {{ colab.last_name }}</a>
{% if colab.orcid %}
<a href="{{ colab.orcid }}">
<img alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" /></a>
{% endif %}</li>
<img alt="ORCID logo" src={{url_for('static', path='img/ORCID-iD_icon_vector.svg')}} width="16" height="16" /></a> {% endif %}</li>
{% if colab.affiliations %}
{% for value in colab.affiliations %}
<span class="badge bg-primary">{{ value.name }}</span>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a href="{{ url_for('author', id=author.uuid) }}">{{ author.first_name}} {{ author.last_name }}</a>
{% if author.orcid %}
<a href="{{ author.orcid }}">
<img alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" /></a>
<img alt="ORCID logo" src={{url_for('static', path='img/ORCID-iD_icon_vector.svg')}} width="16" height="16" /></a>
{% endif %}
{% if author.affiliations %}
{% for value in author.affiliations %}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/output.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h5 class="card-title">Authors</h5>
{% for author in authors %}
<l><a href="{{ url_for('author', id=author.uuid) }}">{{ author.first_name}} {{ author.last_name }}</a>
{% if author.orcid %}
<a href="{{ author.orcid }}"><img alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" /></a>
<img alt=" logo" src={{url_for('static', path='img/ORCID-iD_icon_vector.svg')}} width="16" height="16" /></a>
{% endif %}</l>
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion app/templates/output_list.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{% for author in output.authors %}
<l><a href="{{ url_for('author', id=author.uuid) }}">{{ author.first_name}} {{ author.last_name }}</a>
{% if author.orcid %}
<a href="{{ author.orcid }}"><img alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" /></a>
<img alt="ORCID logo" src={{url_for('static', path='img/ORCID-iD_icon_vector.svg')}} width="16" height="16" /></a>
{% endif %}</l>
{% endfor %}
{% if output.publication_year %}({{ output.publication_year }}){% endif %}
Expand Down

0 comments on commit 3b46b5e

Please sign in to comment.