WIP: ajout d'une liste de serie

This commit is contained in:
WEBER Antoine
2015-09-23 22:32:17 +02:00
parent ab4720f910
commit b077b7b2b6
6 changed files with 157 additions and 2 deletions

View File

@@ -6,4 +6,7 @@ block content
ul
each channel, i in channels
li
a(href="/channel/#{channel.id}")= channel.name
if(channel.type == 2)
a(href="/channel/#{channel.id}")= channel.name
else
a(href="/show_list/#{channel.id}")= channel.name

24
views/show_list.jade Normal file
View File

@@ -0,0 +1,24 @@
extends layout
block content
h1= title
table(id="example", class="table table-striped table-bordered", cellspacing="0", width="100%")
thead
tr
th Série
th Année
tbody
each show, i in shows
tr
td
a(href="/show/#{show.id}")= show.nom
td= show.year
script.
$(document).ready(function() {
$('#example').DataTable({
"language": {
"url": "//cdn.datatables.net/plug-ins/1.10.8/i18n/French.json"
}
});
});