Use title in reports as well

This commit is contained in:
Niko Strijbol 2019-06-07 14:54:23 +02:00
parent 3ce3f15dc6
commit c60a0a5564
No known key found for this signature in database
GPG key ID: 1A8AEBABD9012251

View file

@ -7,7 +7,7 @@ narrow_page: true
<div class="content">
<% reports.group_by {|r| r[:academic_year]}.each do |year, y_reports| %>
<h2><%= year %></h2>
<h2><%= academic_year_string(year) %></h2>
<% y_reports.each do |report| %>
<a href="<%= report.reps[:pdf]&.path || report.identifier %>">Report <%= report[:date].strftime('%d %B %Y') %></a><br>
<% end %>