Skip to content

Commit

Permalink
[Feature] Add image count to gallery list (#429)
Browse files Browse the repository at this point in the history
* Add imagecount to gallery list
* Port to 2.5
Co-authored-by: WithoutPants <[email protected]>
  • Loading branch information
ueaslsef authored Apr 1, 2020
1 parent 82201e2 commit 10b6d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Galleries/GalleryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
))}
Expand Down
2 changes: 1 addition & 1 deletion ui/v2/src/components/Galleries/GalleryList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const GalleryList: FunctionComponent<IProps> = (props: IProps) => {
{gallery.files.length > 0 ? <img alt={gallery.title} src={`${gallery.files[0].path}?thumb=true`} /> : undefined}
</Link>
</td>
<td><Link to={`/galleries/${gallery.id}`}>{gallery.path}</Link></td>
<td><Link to={`/galleries/${gallery.id}`}>{gallery.path} ({gallery.files.length} {gallery.files.length === 1 ? 'image' : 'images'})</Link></td>
</tr>
))}
</tbody>
Expand Down

0 comments on commit 10b6d4b

Please sign in to comment.