Commit 7f2004bb authored by Ådne Karstad's avatar Ådne Karstad

feat(M2T): only display tables with content

parent e6e3a246
......@@ -119,6 +119,8 @@
[template public generateCourseTables(program : Program)]
[if (program.mandatoryCourses.courses -> size() > 0)]
<div class="spp-table">
<h2>Mandatory Courses</h2>
<table>
......@@ -133,7 +135,9 @@
[/for]
</table>
</div>
[/if]
[if (program.electiveCourses.courses -> size() > 0)]
<div class="spp-table">
<h2>Elective Courses</h2>
<table>
......@@ -148,6 +152,7 @@
[/for]
</table>
</div>
[/if]
[for (specialization : Specialisation | program.specialisation)]
[generateSpecializationTables(specialization)/]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment