BathHacked/energy-sparks

View on GitHub
app/views/schools/dashboard/_transport_surveys.html.erb

Summary

Maintainability
Test Coverage
<%= component 'info_bar',
    status: :neutral,
    title: t('pupils.schools.show.transport_surveys'),
    icon: fa_icon('car-alt fa-3x'),
    buttons: { t('pupils.schools.show.start_transport_survey') => start_school_transport_surveys_path(school) }.merge(school.transport_surveys.empty? ? {} : { t('pupils.schools.show.view_transport_surveys') => school_transport_surveys_path(school) } )
%>