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
|
2017-09-27 08:11:26 -04:00
|
|
|
th Name
|
|
|
|
th duration
|
|
|
|
th Year
|
2015-09-15 04:41:00 -04:00
|
|
|
tbody
|
|
|
|
each video, i in videos
|
|
|
|
tr
|
|
|
|
td
|
2017-09-27 08:11:26 -04:00
|
|
|
a(href="/pwd/movie/#{video.id}") #{video.title}
|
|
|
|
td= video.duration
|
2015-09-15 04:41:00 -04:00
|
|
|
td= video.year
|
|
|
|
script.
|
|
|
|
$(document).ready(function() {
|
2015-09-22 10:10:10 -04:00
|
|
|
$('#example').DataTable({
|
|
|
|
"language": {
|
2017-09-27 08:11:26 -04:00
|
|
|
"url": "//cdn.datatables.net/plug-ins/1.10.8/i18n/English.json"
|
2015-09-23 18:17:03 -04:00
|
|
|
}
|
2015-09-22 10:10:10 -04:00
|
|
|
});
|
2015-09-15 04:41:00 -04:00
|
|
|
});
|