Sha256: e3231ba79fcfb5d83cb33d5fa72da22b10371dc616e3f2d7378fb774b8f4c753

Contents?: true

Size: 916 Bytes

Versions: 4

Compression:

Stored size: 916 Bytes

Contents

= render "layouts/manage/page_title", title: "Bus Lists" do
  = link_to "New Bus List", new_manage_bus_list_path, class: "btn btn-sm btn-outline-secondary"

%div
  %table.table.table-striped.table-hover
    %thead
      %tr
        %th Name
        %th Filled / Capacity
        %th Boarded / Checked in
        %th Needs bus captain?
        %th Schools

    %tbody
      - @bus_lists.each do |bus_list|
        %tr
          %td
            %strong= link_to(bus_list.name, manage_bus_list_path(bus_list))
          %td #{bus_list.passengers.count} / #{bus_list.capacity}
          %td #{bus_list.boarded_passengers.count} / #{bus_list.checked_in_passengers.count}
          %td
            = pluralize bus_list.captains.count, "captain"
            –
            = bus_list.needs_bus_captain ? "<strong class=\"text-danger\">Needs bus captain</strong>".html_safe : "No"
          %td= bus_list.schools.count

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hackathon_manager-0.14.1 app/views/manage/bus_lists/index.html.haml
hackathon_manager-0.14.0 app/views/manage/bus_lists/index.html.haml
hackathon_manager-0.13.12 app/views/manage/bus_lists/index.html.haml
hackathon_manager-0.13.11 app/views/manage/bus_lists/index.html.haml