codeforamerica/ohana-web-search

View on GitHub
app/views/component/locations/results/_header_summary.html.haml

Summary

Maintainability
Test Coverage
%div
  .right-column
    .floating-content.hide><
      %span
        %a.button-utility.button-top{ href: '#' }
          %i.fa.fa-chevron-up
          Top

    = paginate search.results

  .left-column
    %span.static-content><
      - unless search.map_data.empty?
        %a.button-utility.button-map-zoom#map-size-control{ href: '#', disabled: 'disabled' }
          %i.fa.fa-refresh.fa-spin
          Loading map...
    %p.search-summary
      %span
        = page_entries_info search.results, entry_name: 'result'

      %span.map-summary.static-content
        = MapSummary.new(search).call