.container

  = link_to ' + Log Bike', new_bike_path, class: "btn btn-default"
  %br

  %h1 Unsold Bikes
  %table.table.table-striped.table-bordered.table-hover
    %thead
      %tr
        %th Bike
        %th
    %tbody
      - @unsold_bikes.each do |bike|
        %tr
          %td= bike.name
          %td= link_to 'Edit', edit_bike_path(bike)

  %h1 All Bikes
  %table.table.table-striped.table-bordered.table-hover
    %thead
      %tr
        %th Bike
        %th
    %tbody
      - @bikes.each do |bike|
        %tr
          %td= bike.name
          %td= link_to 'Edit', edit_bike_path(bike)
  =will_paginate @bikes
