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

Adding makeshift home button, Added view your bike link

This commit is contained in:
Jason Denney 2014-03-16 13:34:56 -04:00
parent 8f637348cf
commit 9527725e07
4 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,6 @@
class SiteController < ApplicationController class SiteController < ApplicationController
def index def index
@bike = current_user.bike
end end
end end

View File

@ -1,3 +1,5 @@
%a{ class: "btn btn-default btn-lg", href: root_path}
%span{ class:"icon-home"}
%h2 Add Bike %h2 Add Bike
%p %p

View File

@ -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.shop_id}: #{@bike.bike_brand}
%h2 #{@bike.model} %h2 #{@bike.model}

View File

@ -9,10 +9,10 @@
%p %p
%a{class: "btn btn-lg btn-block btn-primary", href: new_bike_path} Add Bike %a{class: "btn btn-lg btn-block btn-primary", href: new_bike_path} Add Bike
%p Your Bikes: - if !@bike.nil?
%ol %p
%li Bike 1 %a{class: "btn btn-lg btn-block btn-primary", href: bike_path(@bike)} View Your Bike
%li Bike 2
%p %p
%p %p