You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
813 B
37 lines
813 B
.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 Brand
|
|
%th Model
|
|
%th
|
|
%th
|
|
%tbody
|
|
- @unsold_bikes.each do |bike|
|
|
%tr
|
|
%td= bike.brand
|
|
%td= bike.model
|
|
%td= link_to 'Show', bike
|
|
%td= link_to 'Edit', edit_bike_path(bike)
|
|
|
|
%h1 All Bikes
|
|
%table.table.table-striped.table-bordered.table-hover
|
|
%thead
|
|
%tr
|
|
%th Brand
|
|
%th Model
|
|
%th
|
|
%th
|
|
%tbody
|
|
- @bikes.each do |bike|
|
|
%tr
|
|
%td= bike.brand
|
|
%td= bike.model
|
|
%td= link_to 'Show', bike
|
|
%td= link_to 'Edit', edit_bike_path(bike)
|
|
=will_paginate @bikes
|
|
|