plex-web-downloader/views/channel.jade

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-09-15 04:41:00 -04:00
extends layout
block content
2015-09-15 11:21:39 -04:00
h1= channel.name
2015-09-15 04:41:00 -04:00
table(id="example", class="table table-striped table-bordered", cellspacing="0", width="100%")
thead
tr
th Nom
2015-09-15 11:21:39 -04:00
if(channel.type == 2)
th Série
2015-09-22 09:05:49 -04:00
th Saison
th Episode
2015-09-15 04:41:00 -04:00
th Durée
th Année
tbody
each video, i in videos
tr
td
2015-09-15 12:34:50 -04:00
a(href="/movie/#{video.id}")= video.title
2015-09-15 11:21:39 -04:00
if(channel.type == 2)
td
if(typeof video.info_meta !== 'undefined' && typeof video.info_meta.show !== 'undefined')
#{video.info_meta.show}
2015-09-22 09:05:49 -04:00
td
if(typeof video.info_meta !== 'undefined' && typeof video.info_meta.season !== 'undefined')
#{video.info_meta.season}
td
if(typeof video.info_meta !== 'undefined' && typeof video.info_meta.episode !== 'undefined')
#{video.info_meta.episode}
2015-09-15 04:41:00 -04:00
td= video.second
td= video.year
script.
$(document).ready(function() {
$('#example').DataTable();
});