diff --git a/routes/movie.js b/routes/movie.js index c5b6e4a..368a512 100644 --- a/routes/movie.js +++ b/routes/movie.js @@ -18,7 +18,7 @@ function humanFileSize(bytes, si) { } /* GET home page. */ -router.get('/:id/:incoming_chan', function(req, res, next) { +router.get('/:id', function(req, res, next) { var config = res.locals.config; var db = config.init_db(); @@ -41,7 +41,7 @@ router.get('/:id/:incoming_chan', function(req, res, next) { row.file.push(ligne); },function(){ - res.render('movie', { title: 'Détail vidéo',movie: row,channel_id: req.params.incoming_chan }); + res.render('movie', { title: 'Détail vidéo',movie: row }); }); }); diff --git a/views/channel.jade b/views/channel.jade index 6f07a9a..0ddfbb6 100644 --- a/views/channel.jade +++ b/views/channel.jade @@ -13,7 +13,7 @@ block content each video, i in videos tr td - a(href="/movie/#{video.id}/#{channel.id}")= video.title + a(href="/movie/#{video.id}")= video.title td= video.duree td= video.year script. diff --git a/views/movie.jade b/views/movie.jade index 156c3f2..16f50c2 100644 --- a/views/movie.jade +++ b/views/movie.jade @@ -3,10 +3,10 @@ extends layout block content h1= movie.title - a(href="/channel/#{channel_id}") Retour à la liste + a(href="#",onclick="window.history.back();") Retour à la liste br br - + label Note p= movie.rating diff --git a/views/show_list.jade b/views/show_list.jade index 73e1c48..9d67806 100644 --- a/views/show_list.jade +++ b/views/show_list.jade @@ -12,7 +12,7 @@ block content each show, i in shows tr td - a(href="/show/#{show.id}/#{channel}")= show.title + a(href="/show/#{show.id}")= show.title td= show.year script. $(document).ready(function() {