mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
showing year data on school page
This commit is contained in:
parent
a6b306a181
commit
b5f950c7bd
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ class SchoolsController < ApplicationController
|
|||
@years = @school_categories.map(&:year).map(&:to_i).sort
|
||||
@year = (params[:year] || @years.first).to_i
|
||||
@years.delete(@year)
|
||||
# @school_categories.select { |sc| sc.year.to_i == @year }
|
||||
# @school_categories = @school_categories.select { |sc| sc.year.to_i == @year }
|
||||
end
|
||||
|
||||
def admin
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
Data from
|
||||
= "#{@year - 1}-#{@year}"
|
||||
school year.
|
||||
- if @years.present?
|
||||
-# if @years.present?
|
||||
%p
|
||||
Show year:
|
||||
- @years.each do |year|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue