diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb index d1f4074f..807861f2 100644 --- a/app/controllers/report_controller.rb +++ b/app/controllers/report_controller.rb @@ -88,11 +88,7 @@ def holds_by_source @list = filter_holds_by_source term_filtered end - def index - report = Report.new - @terms = Thesis.pluck(:grad_date).uniq.sort - @data = report.index_data - end + def index; end def term term = params[:graduation] ? params[:graduation].to_s : 'all' diff --git a/app/views/report/index.html.erb b/app/views/report/index.html.erb index 347a19f9..8b23b369 100644 --- a/app/views/report/index.html.erb +++ b/app/views/report/index.html.erb @@ -2,41 +2,20 @@
-

Thesis dashboard

+

Report dashboard

-
-

The tables below summarize information about the thesis records which have been supplied to this application across academic terms.

-

Click on a column heading to see more detailed information about the theses from that term.

-
- - <%= render 'shared/whodunnit_accuracy_statement' %> - - <% @data.each do |table| %> - " style="margin-top: 4em;"> - - - - - <% @terms.each do |term| %> - - <% end %> - - - - <% table[1].each do |row| %> - - - <% if row[:data] %> - <% row[:data].each do |cell| %> - - <% end %> - <% end %> - - <% end %> - -
<%= table[0].gsub("-", " ").capitalize %>
 <%= link_to( term.in_time_zone('Eastern Time (US & Canada)').strftime('%b %Y'), report_term_path(:graduation => term) )%>
<%= row[:label] %><%= cell[1] %>
- <% end %> - +

Available reports

+