0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 22:52:39 +00:00

Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-share-link-to-error-pages

This commit is contained in:
Víctor Losada Hernández
2024-04-07 16:17:51 +02:00
10 changed files with 111 additions and 84 deletions

View File

@@ -77,7 +77,7 @@ const errorIndex = (props)=>{
**Brew Title:** ${props.brew.brewTitle || 'Unable to show title'}
**Current Authors:** ${props.brew.authors?.map((author)=>{return `${author}`;}).join(', ') || 'Unable to list authors'}
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
${props.brew.published ? `[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`:
'This brew is unpublished, therefore we cannot grant you its share page URL.'}`,
@@ -93,10 +93,11 @@ const errorIndex = (props)=>{
**Brew Title:** ${props.brew.brewTitle || 'Unable to show title'}
**Current Authors:** ${props.brew.authors?.map((author)=>{return `${author}`;}).join(', ') || 'Unable to list authors'}
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
${props.brew.published ? `[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`:
'This brew is unpublished, therefore we cannot grant you its share page URL.'}`,
// Brew load error
'05' : dedent`