BathHacked/energy-sparks

View on GitHub
app/views/schools/advice/electricity_recent_changes/_insights.html.erb

Summary

Maintainability
Test Coverage
<%= component 'notice', status: :neutral do |c| %>
  <% c.with_link do
       link_to t('advice_pages.electricity_recent_changes.insights.link'),
               learn_more_school_advice_electricity_recent_changes_path(@school)
     end %>
  <%= t('advice_pages.electricity_recent_changes.insights.summary') %>.
<% end %>
<%= render 'schools/advice/section_title',
           section_id: 'your_recent_electricity_use',
           section_title: t('advice_pages.electricity_recent_changes.insights.your_recent_electricity_use.title') %>
<%= component 'alerts', school: @school,
                        dashboard_alerts: @dashboard_alerts,
                        alert_types: alert_types_for_class(AlertSchoolWeekComparisonElectricity),
                        show_links: false, show_icons: false %>
<%= render 'your_recent_electricity_use_table' %>