utilisation de lhistorique
This commit is contained in:
parent
3e36f5f6da
commit
a901355238
@ -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 });
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user