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. */
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 });
});
});

View File

@ -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.

View File

@ -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

View File

@ -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() {