Browse Source

Bike show view styling

TBD add class for color block
denney-fix-saving-dates
Jason Denney 11 years ago
parent
commit
64d4186b57
  1. 11
      app/views/bikes/show.html.haml

11
app/views/bikes/show.html.haml

@ -1,12 +1,7 @@
%h2 #{@bike.shop_id}: #{@bike.bike_brand} - #{@bike.model} %h2 #{@bike.shop_id}: #{@bike.bike_brand}
%h2 #{@bike.model}
%dl.dl-horizontal %dl.dl-horizontal
%dt Shop ID
%dd #{@bike.shop_id}
%dt Brand
%dd #{@bike.bike_brand}
%dt Model
%dd #{@bike.model}
%dt Type %dt Type
%dd #{@bike.bike_style} %dd #{@bike.bike_style}
%dt Wheel Size %dt Wheel Size
@ -21,4 +16,4 @@
%dd #{@bike.value} %dd #{@bike.value}
- if !@bike.color.nil? - if !@bike.color.nil?
%dt Color %dt Color
%dd{ style: "background-color: ##{@bike.color}; border: black; border-width: 1px; border-style: solid;"} #{@bike.color} %dd{ style: "width: 50px; background-color: ##{@bike.color}; border: black; border-width: 1px; border-style: solid;"} #{@bike.color}

Loading…
Cancel
Save