Skip to content

Commit

Permalink
tweak nextstrain specific ncov byline
Browse files Browse the repository at this point in the history
This changes the behavior so that we only show the "enabled by data from gisaid" byline if a buildUrl is present, which means the nextstrain app embedded in the GISAID site doesn't show this byline.
  • Loading branch information
jameshadfield committed Mar 27, 2020
1 parent 7f50271 commit 9699123
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/info/byline.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ const Byline = ({width, metadata}) => {
<div width={width} style={styles.byline}>
{renderAvatar(t, metadata)}
{renderMaintainers(t, metadata)}
<span>
{" Enabled by data from "}
<img src="https://www.gisaid.org/fileadmin/gisaid/img/schild.png" alt="gisaid-logo" width="65"/>
</span>
{
metadata.buildUrl &&
<span>
{" Enabled by data from "}
<img src="https://www.gisaid.org/fileadmin/gisaid/img/schild.png" alt="gisaid-logo" width="65"/>
</span>
}
</div>
);
}
Expand Down

0 comments on commit 9699123

Please sign in to comment.