mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Add JS tests to verify school and district dropdowns.
This commit is contained in:
parent
2d4ba042f9
commit
6320d5633f
12 changed files with 219 additions and 74 deletions
|
|
@ -16,6 +16,14 @@ module HeaderHelper
|
|||
dashboard_link(district_slug: school.district.slug, school_slug: school.slug, academic_year_range: academic_year.range, uri_path: request.fullpath)
|
||||
end
|
||||
|
||||
def school_mapper(school)
|
||||
{
|
||||
name: school.name,
|
||||
district_id: school.district_id,
|
||||
url: district_school_dashboard_index_path(school.district, school, {year: AcademicYear.first.range})
|
||||
}
|
||||
end
|
||||
|
||||
def link_weight(path:)
|
||||
active?(path: path) ? 'weight-700' : 'weight-400'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue