Skip to content

Commit

Permalink
Merge pull request #59 from ClimateCompatibleGrowth/orcid_image
Browse files Browse the repository at this point in the history
Replace link to orcid image with static file
  • Loading branch information
willu47 authored Dec 18, 2024
2 parents 520de33 + 2ccc0e8 commit 357dc67
Show file tree
Hide file tree
Showing 5 changed files with 10 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.
6 changes: 3 additions & 3 deletions app/templates/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h1>{{ author.first_name }} {{ author.last_name }}
{% 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="24" height="24" />
<img alt="ORCID logo" src="{{url_for('static', filename='img/ORCID-iD_icon_vector.svg')}}" width="24" height="24" />
</a>
{% endif %}
</h1>
Expand Down Expand Up @@ -50,8 +50,8 @@ <h5 class="card-title">Collaborators</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', filename='img/ORCID-iD_icon_vector.svg')}} width="16" height="16" /></a>
{% endif %}</li>
{% endfor %}
</ul>
</div></div>
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', filename='img/ORCID-iD_icon_vector.svg')}} width="16" height="16" /></a>
{% endif %}
{% if author.affiliation %}
{% for id, value in author.affiliation|dictsort %}
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 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=" logo" src={{url_for('static', filename='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 @@ -40,7 +40,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', filename='img/ORCID-iD_icon_vector.svg')}} width="16" height="16" /></a>
{% endif %}</l>
{% endfor %}
{% if output.outputs.publication_year %}({{ output.outputs.publication_year }}){% endif %}
Expand Down

0 comments on commit 357dc67

Please sign in to comment.