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 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 open an issue exaplaining what are the problem so we can fix it. Thanks!