Skip to content

Commit

Permalink
admin: link GitHub and ORCiD icons to sites
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinmack committed Nov 1, 2024
1 parent f2f1ceb commit 75345ed
Showing 1 changed file with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,24 @@ class SearchResultItemComponent extends Component {
<Table.Cell key={`user-name-${result.id}`} data-label={i18next.t("Username")}>
@{result.username}
{result.identities.orcid && (
<img
className="inline-id-icon ml-5"
src="/static/images/orcid.svg"
alt="ORCID"
/>
<a href={`https://orcid.org/${result.identities.orcid}`}>
<img
className="inline-id-icon ml-5"
src="/static/images/orcid.svg"
alt="ORCID"
/>
</a>
)}
{result.identities.github && (
<a href={`https://api.github.com/user/${result.identities.github}`}>
<Icon
title={i18next.t("GitHub")}
name="github"
color="black"
className="ml-5"
/>
</a>
)}
<BoolFormatter
tooltip={i18next.t("GitHub")}
icon="github"
color="black"
value={result.identities.github}
/>
</Table.Cell>
<Table.Cell
key={`user-email-${result.id}`}
Expand Down

0 comments on commit 75345ed

Please sign in to comment.