From 64d4186b579be940282454316494bbc7d5e79c4b Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sun, 9 Feb 2014 19:18:16 -0500 Subject: [PATCH] Bike show view styling TBD add class for color block --- app/views/bikes/show.html.haml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/views/bikes/show.html.haml b/app/views/bikes/show.html.haml index 9282501..02dd2b5 100644 --- a/app/views/bikes/show.html.haml +++ b/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 - %dt Shop ID - %dd #{@bike.shop_id} - %dt Brand - %dd #{@bike.bike_brand} - %dt Model - %dd #{@bike.model} %dt Type %dd #{@bike.bike_style} %dt Wheel Size @@ -21,4 +16,4 @@ %dd #{@bike.value} - if !@bike.color.nil? %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}