From ba6244223850b9be2b3dfef7d1b3a2df12cba339 Mon Sep 17 00:00:00 2001 From: WEBER Antoine Date: Thu, 24 Sep 2015 00:30:10 +0200 Subject: [PATCH] show page --- views/show.jade | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 views/show.jade diff --git a/views/show.jade b/views/show.jade new file mode 100644 index 0000000..c52ddae --- /dev/null +++ b/views/show.jade @@ -0,0 +1,36 @@ +extends layout + +block content + h1= channel.name + + table(id="example", class="table table-striped table-bordered", cellspacing="0", width="100%") + thead + tr + th Nom + th Série + th Saison & Episode + th Durée + th Année + th Taille + tbody + each video, i in videos + tr + td + a(href="/movie/#{video.id}")= video.title + td + if(typeof video.info_meta !== 'undefined' && typeof video.info_meta.show !== 'undefined') + | #{video.info_meta.show} + td + if(typeof video.season_episode !== 'undefined') + | #{video.season_episode} + td= video.duree + td= video.year + td= video.size + script. + $(document).ready(function() { + $('#example').DataTable({ + "language": { + "url": "//cdn.datatables.net/plug-ins/1.10.8/i18n/French.json" + } + }); + });