mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 20:52:40 +00:00
author another fix
This commit is contained in:
@@ -136,12 +136,19 @@ const BrewItem = createClass({
|
|||||||
</div>
|
</div>
|
||||||
</> : <></>
|
</> : <></>
|
||||||
}
|
}
|
||||||
<span title={`Authors:\n${authors?.join('\n')}`}>
|
<span title={`Authors:\n${brew.authors?.join('\n')}`}>
|
||||||
<i className='fas fa-user'/> {brew.authors?.map((author, index) => (
|
<i className='fas fa-user'/> {authors.isArray(authors) ? (
|
||||||
<span key={index}>
|
<span>
|
||||||
<a href={`/share/${author}`}>{author}</a>
|
{authors.map((author, index) => (
|
||||||
{index < brew.authors.length - 1 && ', '}
|
<span key={index}>
|
||||||
</span>))}
|
<a href={`/share/${author}`}>{author}</a>
|
||||||
|
{index < authors.length - 1 && ', '}
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
<span>{authors}</span>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>
|
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>
|
||||||
|
|||||||
Reference in New Issue
Block a user