Hide empty courses, click to show them

Fixes #7
This commit is contained in:
Thomas Forgione
2017-10-03 14:17:26 +02:00
parent fabbae223e
commit 64e1316b1e
4 changed files with 79 additions and 30 deletions

View File

@@ -7,11 +7,20 @@ table.table.table-bordered.table-striped.table-hover
th Total TD equivalent
tbody
each course in courses
tr
tr(class=course.totalTdEquivalent === 0 ? "no-courses" : "")
td #{course.name}
each type in types
td #{course[type]}
td #{course.totalTdEquivalent}
tr#extend
td
a(href="#") ...
each type in types
td
a(href="#") ...
td
a(href="#") ...
tr.table-active
td
strong #{total.name}
@@ -25,3 +34,4 @@ p.
If you think there is a mistake in this table, feel free to
<a href="https://github.com/tforgione/adejs/issues/new">open an issue</a>
exaplaining what are the problem so we can fix it. Thanks!