Skip to content

Commit

Permalink
Don't show Licence field for live databases on user profile page
Browse files Browse the repository at this point in the history
We don't (yet?) make use of a Licence field for live databases, so
there's no point displaying an empty field for them.
  • Loading branch information
justinclift committed Dec 12, 2023
1 parent abcdde2 commit 9c34acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/jsx/user-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function DatabasePanel({data, username}) {
{data.OneLineDesc !== "" ? <p>{data.OneLineDesc}</p> : null}
<p>
<strong>Updated: </strong><span title={new Date(data.RepoModified).toLocaleString()} className="text-info">{getTimePeriod(data.RepoModified, false)}</span>&nbsp;&nbsp;
<strong>Licence: </strong><span className="text-info">{data.LicenceURL === "" ? data.Licence : <a href={data.LicenceURL}>{data.Licence}</a>}</span>&nbsp;&nbsp;
{data.IsLive ? null : <><strong>Licence: </strong><span className="text-info">{data.LicenceURL === "" ? data.Licence : <a href={data.LicenceURL}>{data.Licence}</a>}</span>&nbsp;&nbsp;</>}
<strong>Size: </strong><span className="text-info">{Math.floor(data.Size / 1024).toLocaleString()} KB</span>
</p>
{isExpanded ? (<>
Expand Down

0 comments on commit 9c34acb

Please sign in to comment.