mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Added bike show and show view
This commit is contained in:
		
							parent
							
								
									d0c05a0244
								
							
						
					
					
						commit
						c6a3ed9991
					
				| @ -7,4 +7,8 @@ class BikesController < AuthenticatedController | ||||
|     @wheel_sizes.unshift( ["Select a wheel size", -1] ) | ||||
|   end | ||||
| 
 | ||||
|   def show | ||||
|     @bike = Bike.find_by_id(params[:id]) | ||||
|   end | ||||
| 
 | ||||
| end | ||||
|  | ||||
| @ -1 +1,24 @@ | ||||
| Bike Show | ||||
| %h2 #{@bike.shop_id}: #{@bike.bike_brand} - #{@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 | ||||
|   %dd #{@bike.bike_wheel_size.display_string} | ||||
|   %dt Condition | ||||
|   %dd #{@bike.bike_condition} | ||||
|   %dt Seat Tube (cm) | ||||
|   %dd #{@bike.seat_tube_height} | ||||
|   %dt Purpose | ||||
|   %dd #{@bike.bike_purpose} | ||||
|   %dt Value | ||||
|   %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} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user