utilisation de lhistorique

This commit is contained in:
Antoine WEBER 2015-10-07 18:21:10 +02:00
parent 3e36f5f6da
commit a901355238
4 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ function humanFileSize(bytes, si) {
} }
/* GET home page. */ /* 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 config = res.locals.config;
var db = config.init_db(); var db = config.init_db();
@ -41,7 +41,7 @@ router.get('/:id/:incoming_chan', function(req, res, next) {
row.file.push(ligne); row.file.push(ligne);
},function(){ },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 });
}); });
}); });

View File

@ -13,7 +13,7 @@ block content
each video, i in videos each video, i in videos
tr tr
td td
a(href="/movie/#{video.id}/#{channel.id}")= video.title a(href="/movie/#{video.id}")= video.title
td= video.duree td= video.duree
td= video.year td= video.year
script. script.

View File

@ -3,10 +3,10 @@ extends layout
block content block content
h1= movie.title h1= movie.title
a(href="/channel/#{channel_id}") Retour à la liste a(href="#",onclick="window.history.back();") Retour à la liste
br br
br br
label Note label Note
p= movie.rating p= movie.rating

View File

@ -12,7 +12,7 @@ block content
each show, i in shows each show, i in shows
tr tr
td td
a(href="/show/#{show.id}/#{channel}")= show.title a(href="/show/#{show.id}")= show.title
td= show.year td= show.year
script. script.
$(document).ready(function() { $(document).ready(function() {