1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 08:43:23 -05:00

Add link to view bike check list when showing bike

This commit is contained in:
Jason Denney 2014-03-16 13:50:13 -04:00
parent 9527725e07
commit 98b136e4f4
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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