BathHacked/energy-sparks

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

Summary

Maintainability
Test Coverage
<%= component 'notice', status: :neutral do |c| %>
  <% c.with_link do
       link_to t('advice_pages.gas_recent_changes.insights.link'),
               learn_more_school_advice_gas_recent_changes_path(@school)
     end %>
  <%= t('advice_pages.gas_recent_changes.insights.summary') %>.
<% end %>
<%= render 'schools/advice/section_title',
           section_id: 'your_recent_gas_use',
           section_title: t('advice_pages.gas_recent_changes.insights.your_recent_gas_use.title') %>

<%= component 'alerts', school: @school,
                        dashboard_alerts: @dashboard_alerts,
                        alert_types: alert_types_for_class([AlertSchoolWeekComparisonGas,
                                                            AlertWeekendGasConsumptionShortTerm]),
                        show_links: false, show_icons: false %>

<%= render 'your_recent_gas_use_table' %>