mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05: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
|
def show
|
||||||
@bike = Bike.find_by_id(params[:id])
|
@bike = Bike.find_by_id(params[:id])
|
||||||
|
@task_list_id = @bike.task_list.id
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -20,3 +20,4 @@
|
|||||||
- if !@bike.color.nil?
|
- if !@bike.color.nil?
|
||||||
%dt Color
|
%dt Color
|
||||||
%dd{ style: "width: 50px; 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}
|
||||||
|
%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