Skip to content

Commit

Permalink
Display ORCID Icon only when authenticated (#223)
Browse files Browse the repository at this point in the history
* Display ORCID Icon only when authenticated 
* orcid icon styles
---------

Co-authored-by: Kaitlin Newson <[email protected]>
  • Loading branch information
mhvezina and kaitlinnewson authored Aug 6, 2024
1 parent b18a059 commit 9b861f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions styles/bootstrap.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@
margin-bottom: 2em;
}

.orcid_icon {
display: inline-block;
margin-right: 0.25em;
width: 24px;
height: 24px;
vertical-align: middle;
}

.author + .author {
margin-top: 0.5em;
}
Expand Down
4 changes: 3 additions & 1 deletion templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@
{/if}
{if $author->getOrcid()}
<div class="orcid">
{$orcidIcon}
{if $author->getData('orcidAccessToken')}
{$orcidIcon}
{/if}
<a href="{$author->getOrcid()|escape}" target="_blank">
{$author->getOrcid()|escape}
</a>
Expand Down

0 comments on commit 9b861f4

Please sign in to comment.