BS3: top menu.

This commit is contained in:
Ilya Konanykhin
2016-12-22 23:35:26 +06:00
parent 1774a6ad34
commit e8506f6fbc
6 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
= link_to_dashboard
= top_menu link_to_dashboard
%h2 Add Bike
+4 -4
View File
@@ -1,8 +1,8 @@
- if @show_add_bike
%p
%a{class: "btn btn-lg btn-block btn-info", href: new_bike_path} Add Another Bike?
- btn = if @show_add_bike
- capture do
= link_to 'Add Another Bike?', new_bike_path, class: 'btn btn-default'
= link_to_dashboard
= top_menu link_to_dashboard, btn
%h2 #{@bike.shop_id}: #{@bike.bike_brand}
%h2 #{@bike.model}