Use title in reports as well
This commit is contained in:
parent
3ce3f15dc6
commit
c60a0a5564
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ narrow_page: true
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<% reports.group_by {|r| r[:academic_year]}.each do |year, y_reports| %>
|
<% 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| %>
|
<% y_reports.each do |report| %>
|
||||||
<a href="<%= report.reps[:pdf]&.path || report.identifier %>">Report <%= report[:date].strftime('%d %B %Y') %></a><br>
|
<a href="<%= report.reps[:pdf]&.path || report.identifier %>">Report <%= report[:date].strftime('%d %B %Y') %></a><br>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue