0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 18:12:40 +00:00

initial commit

This commit is contained in:
Víctor Losada Hernández
2024-01-27 16:58:28 +01:00
parent 37c72d5125
commit 77abab8395

View File

@@ -135,7 +135,11 @@ const BrewItem = createClass({
</> : <></>
}
<span title={`Authors:\n${brew.authors?.join('\n')}`}>
<i className='fas fa-user'/> {brew.authors.map((item) => <a href={`/user/${item}`}>{item}</a>)}
<i className='fas fa-user'/> {brew.authors?.map((author, index) => (
<span key={index}>
<a href={`/share/${author}`}>{author}</a>
{index < brew.authors.length - 1 && ', '}
</span>))}
</span>
<br />
<span title={`Last viewed: ${moment(brew.lastViewed).local().format(dateFormatString)}`}>