plex-web-downloader/views/channel.jade

46 lines
1.2 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:07:30 -04:00
th Saison & Episode
2015-09-15 04:41:00 -04:00
th Durée
th Année
2015-09-22 09:50:53 -04:00
th Taille
2015-09-15 04:41:00 -04:00
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')
2015-09-22 09:08:51 -04:00
| #{video.info_meta.show}
2015-09-22 09:05:49 -04:00
td
2015-09-22 09:20:02 -04:00
if(typeof video.season_episode !== 'undefined')
| #{video.season_episode}
2015-09-22 09:50:53 -04:00
td= video.duree
2015-09-15 04:41:00 -04:00
td= video.year
2015-09-22 09:50:53 -04:00
td= video.size
2015-09-15 04:41:00 -04:00
script.
$(document).ready(function() {
2015-09-22 10:10:10 -04:00
$('#example').DataTable({
"language": {
"url": "//cdn.datatables.net/plug-ins/1.10.8/i18n/French.json"
}/*,
"columnDefs": [
{ "targets": 2,
"searchable": false,
"orderable": false,
}
]*/
//"dom": '<"toolbar">frtip'
});
2015-09-15 04:41:00 -04:00
});