mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Adding makeshift home button, Added view your bike link
This commit is contained in:
		
							parent
							
								
									8f637348cf
								
							
						
					
					
						commit
						9527725e07
					
				| @ -1,5 +1,6 @@ | ||||
| class SiteController < ApplicationController | ||||
| 
 | ||||
|   def index | ||||
|     @bike = current_user.bike | ||||
|   end | ||||
| end | ||||
|  | ||||
| @ -1,3 +1,5 @@ | ||||
| %a{ class: "btn btn-default btn-lg", href: root_path} | ||||
|   %span{ class:"icon-home"} | ||||
| %h2 Add Bike | ||||
| 
 | ||||
| %p | ||||
|  | ||||
| @ -1,3 +1,5 @@ | ||||
| %a{ class: "btn btn-default btn-lg", href: root_path} | ||||
|   %span{ class:"icon-home"} | ||||
| %h2 #{@bike.shop_id}: #{@bike.bike_brand} | ||||
| %h2 #{@bike.model} | ||||
| 
 | ||||
|  | ||||
| @ -9,10 +9,10 @@ | ||||
|   %p | ||||
|     %a{class: "btn btn-lg btn-block btn-primary", href: new_bike_path} Add Bike | ||||
| 
 | ||||
| %p Your Bikes: | ||||
| %ol | ||||
|   %li Bike 1 | ||||
|   %li Bike 2 | ||||
| - if !@bike.nil? | ||||
|   %p | ||||
|     %a{class: "btn btn-lg btn-block btn-primary", href: bike_path(@bike)} View Your Bike | ||||
| 
 | ||||
| 
 | ||||
| %p | ||||
|   %p | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user