[Feature] Add image count to gallery list (#429)

* Add imagecount to gallery list
* Port to 2.5
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
ueaslsef
2020-04-01 21:27:33 +00:00
committed by GitHub
parent 82201e23e0
commit 10b6d4b579
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ export const GalleryList: React.FC = () => {
</Link>
</td>
<td className="d-none d-sm-block">
<Link to={`/galleries/${gallery.id}`}>{gallery.path}</Link>
<Link to={`/galleries/${gallery.id}`}>{gallery.path} ({gallery.files.length} {gallery.files.length === 1 ? 'image' : 'images'})</Link>
</td>
</tr>
))}