Skip to content

Commit

Permalink
Simplify bottom links to avoid translation parameters
Browse files Browse the repository at this point in the history
As done to ArtistRecordings in commit
5c826bb
  • Loading branch information
reosarevok committed Feb 1, 2021
1 parent 39d5ae3 commit 0cb5874
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions root/artist/ArtistIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,25 @@ const FooterSwitch = ({
l('Showing all release groups for various artists');
const hasNoVAText =
l('This artist does not have any various artists release groups');
const showOfficialLink = exp.l(
'{show_official|Show official release groups}',
{show_official: `${artistLink}`},
const showOfficialLink = (
<a href={artistLink}>
{l('Show official release groups')}
</a>
);
const showAllLink = exp.l(
'{show_all|Show all release groups}',
{show_all: `${artistLink}?all=1`},
const showAllLink = (
<a href={`${artistLink}?all=1`}>
{l('Show all release groups')}
</a>
);
const showOfficialVALink = exp.l(
'{show_official|Show official various artist release groups}',
{show_official: `${artistLink}?va=1`},
const showOfficialVALink = (
<a href={`${artistLink}?va=1`}>
{l('Show official various artist release groups')}
</a>
);
const showAllVALink = exp.l(
'{show_all|Show all various artist release groups}',
{show_all: `${artistLink}?all=1&va=1`},
const showAllVALink = (
<a href={`${artistLink}?all=1&va=1`}>
{l('Show all various artist release groups')}
</a>
);

function buildLinks(showDefault, showAll, showVA, showAllVA) {
Expand Down

0 comments on commit 0cb5874

Please sign in to comment.