WIP: ajout d'une liste de serie
This commit is contained in:
@@ -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
24
views/show_list.jade
Normal 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"
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user