adejs/controllers/total/templates/totalTableByCourse.pug

40 lines
1.2 KiB
Plaintext

table.table.table-bordered.table-striped.table-hover
thead
tr
th Course name
each type in types
th #{type}
th Total TD equivalent
tbody
each course in courses
tr(class=course.totalTdEquivalent === 0 ? "no-courses" : "")
td #{course.name}
each type in types
td #{course[type]}
td #{course.totalTdEquivalent}
tr#extend
td(colspan=2+types.length)
a#extendText(href="#") ...
each course in noCourses
tr.no-courses
td #{course.name}
each type in types
td #{course[type]}
td #{course.totalTdEquivalent}
tr.table-active
td
strong #{total.name}
each type in types
td
strong #{total[type]}
td
strong #{total.totalTdEquivalent}
p.
If you think there is a mistake in this table, feel free to
<a href="mailto:thomas@forgione.fr">send me a mail</a>
exaplaining what are the problem so I can fix it. Thanks!