mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Add link to view bike check list when showing bike
This commit is contained in:
		
							parent
							
								
									9527725e07
								
							
						
					
					
						commit
						98b136e4f4
					
				| @ -9,6 +9,7 @@ class BikesController < AuthenticatedController | ||||
| 
 | ||||
|   def show | ||||
|     @bike = Bike.find_by_id(params[:id]) | ||||
|     @task_list_id = @bike.task_list.id | ||||
|   end | ||||
| 
 | ||||
| end | ||||
|  | ||||
| @ -20,3 +20,4 @@ | ||||
|   - if !@bike.color.nil? | ||||
|     %dt Color | ||||
|     %dd{ style: "width: 50px; background-color: ##{@bike.color}; border: black; border-width: 1px; border-style: solid;"} #{@bike.color} | ||||
| %a{class: "btn btn-lg btn-block btn-primary", href: edit_task_list_path(@task_list_id) } View Checklist | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user