0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 04:42:41 +00:00

Add a page count to User page

This commit is contained in:
G.Ambatte
2021-07-31 17:21:25 +12:00
parent ec92a0307b
commit f0a0c0c11d
4 changed files with 15 additions and 5 deletions

View File

@@ -112,6 +112,7 @@ const BrewItem = createClass({
<h2>{brew.title}</h2>
<p className='description'>{brew.description}</p>
<hr />
<div className='spacer'></div>
<div className='info'>
<span>
@@ -120,6 +121,9 @@ const BrewItem = createClass({
<span>
<i className='fas fa-eye' /> {brew.views}
</span>
<span>
<i className='far fa-file' /> {brew.pageCount || 1}
</span>
<span>
<i className='fas fa-sync-alt' /> {moment(brew.updatedAt).fromNow()}
</span>

View File

@@ -69,4 +69,7 @@
padding : 0px;
margin : -5px;
}
.spacer {
height : 25px;
}
}