<div class="card">
  <div class="card-body">
    <% if school.active? %>
      <h3 class="card-title">
        <%= link_to school_path(school) do %>
          <%= school.name %>
        <% end -%>
      </h3>
      <div class="card-text">
        <% if user_signed_in? && current_user.admin? %>
          <% if school.meters_for_supply(:electricity).any? %>
            <%= fa_icon(fuel_type_icon(:electricity)) %>
          <% end %>
          <% if school.meters_for_supply(:gas).any? %>
            <%= fa_icon(fuel_type_icon(:gas)) %>
          <% end %>
          <% if school.has_solar_pv? %>
            <%= fa_icon(:sun) %>
          <% end %>
          <% if school.has_storage_heaters? %>
            <%= fa_icon(:plug) %>
          <% end %>
        <% end %>
        <%= school.address %> <%= school.postcode %>
      </div>
    <% else %>
      <h6 class="card-title">
        <%= link_to school_path(school) do %>
          <%= school.name %>
        <% end -%>
      </h6>
    <% end %>
  </div>
</div>

<div class="card">
  <div class="card-body">
    <% if school.active? %>
      <h3 class="card-title">
        <%= link_to school_path(school) do %>
          <%= school.name %>
        <% end -%>
      </h3>
      <div class="card-text">
        <% if school.meters_for_supply(:electricity).any? %>
          <%= fa_icon(fuel_type_icon(:electricity)) %>
        <% end %>
        <% if school.meters_for_supply(:gas).any? %>
          <%= fa_icon(fuel_type_icon(:gas)) %>
        <% end %>
        <% if school.has_solar_pv? %>
          <%= fa_icon(:sun) %>
        <% end %>
        <% if school.has_storage_heaters? %>
          <%= fab_icon(:intercom) %>
        <% end %>
        <%= school.address %> <%= school.postcode %>
      </div>
    <% else %>
      <h6 class="card-title">
        <%= link_to school_path(school) do %>
          <%= school.name %>
        <% end -%>
      </h6>
    <% end %>
  </div>
</div>

Switch to allow anyone to view icons and update storage heater icon
Switch to allow anyone to view icons and update storage heater icon
