{item.gallery}} />
-)
-
-const Home = ({ galleries }) => (
-
-
-
History App - List Galleries
-
-
-
-
- List of Galleries
-
-
-
-)
-
-export default Home
diff --git a/app/src/lib/__tests__/album.test.js b/app/src/lib/__tests__/album.test.js
index aa6fb3c22..3b6054bee 100644
--- a/app/src/lib/__tests__/album.test.js
+++ b/app/src/lib/__tests__/album.test.js
@@ -5,13 +5,13 @@ describe('Album library', () => {
describe('getVideoPath', () => {
test('Just filename', () => {
const item = { filename: '2016-12-31-01.mp4' }
- const expectedPath = `/view/video?sources=${item.filename}&w=&h=&gallery=${gallery}`
+ const expectedPath = `/video?sources=${item.filename}&w=&h=&gallery=${gallery}`
expect(lib.getVideoPath(item, gallery)).toBe(expectedPath)
})
test('All', () => {
const item = { filename: '2016-12-31-01.mp4', size: { w: 1, h: 2 } }
- const expectedPath = `/view/video?sources=${item.filename}&w=${item.size.w}&h=${item.size.h}&gallery=${gallery}`
+ const expectedPath = `/video?sources=${item.filename}&w=${item.size.w}&h=${item.size.h}&gallery=${gallery}`
expect(lib.getVideoPath(item, gallery)).toBe(expectedPath)
})
})
@@ -80,7 +80,7 @@ describe('Album library', () => {
expect(result.album.items[1].caption).toEqual('Video: Caption') // Video Thumb Caption
expect(result.album.items[1].photoPath).toEqual('/galleries/demo/media/photos/2016/2016-Video-Filename.jpg') // Photo Path
expect(result.album.items[1].mediaPath)
- .toEqual('/view/video?sources=2016-Video-Filename.mov,2016-Video-Filename.avi&w=1280&h=720&gallery=demo') // Video Path
+ .toEqual('/video?sources=2016-Video-Filename.mov,2016-Video-Filename.avi&w=1280&h=720&gallery=demo') // Video Path
expect(result.album.items[1].reference).toEqual('https://en.wikipedia.org/wiki/Purshia_tridentata') // Wikipedia reference
})
})
diff --git a/app/src/lib/album.js b/app/src/lib/album.js
index 2eca2bbc7..c34d799af 100644
--- a/app/src/lib/album.js
+++ b/app/src/lib/album.js
@@ -34,7 +34,7 @@ const getVideoPath = (item, gallery) => {
const filename = (typeof item.filename === 'string') ? item.filename : item.filename.join(',')
const dimensions = (item.size) ? { width: item.size.w, height: item.size.h } : { width: '', height: '' }
- return `/view/video?sources=${filename}&w=${dimensions.width}&h=${dimensions.height}&gallery=${gallery}`
+ return `/video?sources=${filename}&w=${dimensions.width}&h=${dimensions.height}&gallery=${gallery}`
}
function title(item) {
diff --git a/ui/app/containers/GalleryListItem/index.jsx b/ui/app/containers/GalleryListItem/index.jsx
index 5e59e99c8..358c97465 100644
--- a/ui/app/containers/GalleryListItem/index.jsx
+++ b/ui/app/containers/GalleryListItem/index.jsx
@@ -8,7 +8,7 @@ import { hostCase } from '../../utils/host';
function GalleriesItem({ item: { name: gallery, host, id } }) {
const content = [
-
+
{capitalize(gallery)}
,
`(${hostCase(host)})`,