Commit 3e2738fe authored by Fabien Maniere's avatar Fabien Maniere

add external icon on DOI link

parent c32921b0
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -365,7 +365,11 @@ layoutWithContextNgramsCpt = here.component "layoutWithContextNgrams" cpt where
, id: getIdName "doi" }
[
if (TUV.validateURL doi) then
H.a {classname: "", on: { click: goToURLInNewTab $ doi }} [ H.text doi ]
H.a {classname: "", on: { click: goToURLInNewTab $ doi }}
[
H.text doi
, H.i { className: "fa fa-external-link mx-1 small" } []
]
else
H.text doi
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment