Skip to content

Commit

Permalink
Added capacity to /courses page.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Sep 12, 2015
1 parent 694f5c7 commit a97a401
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Kinza/views/courses.tt
@@ -1,7 +1,8 @@
<table class="table table-bordered table-hover">
<tr><th>Title</th><th>Years</th><th>Terms</th></tr>
<tr><th>Title</th><th>Places</th><th>Years</th><th>Terms</th></tr>
[% FOREACH course IN courses.all.sort('title') -%]
<tr><th>[% course.title %]</th>
<tr><th width="30%">[% course.title %]</th>
<td>[% course.capacity %]</td>
[% course_years = [];
FOREACH year IN years.all.sort('seq');
IF course.allowed_for_year(year.name);
Expand Down

0 comments on commit a97a401

Please sign in to comment.