New top menu for desktop & mobile.

This commit is contained in:
Ilya Konanykhin
2017-01-18 00:27:16 +06:00
parent 8a8c82f5b7
commit 327ec462d1
7 changed files with 35 additions and 17 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
= top_menu link_to_dashboard
= top_menu
%h1 Add Bike
+4 -2
View File
@@ -1,8 +1,10 @@
- btn = if @show_add_bike
- capture do
= link_to 'Add Another Bike?', new_bike_path, class: 'btn btn-default'
= link_to 'Add Another Bike?', new_bike_path, class: 'btn btn-default navbar-btn hidden-xs'
= link_to new_bike_path, class: 'navbar-brand visible-xs', title: 'Add Another Bike?' do
%i.glyphicon.glyphicon-plus
= top_menu link_to_dashboard, btn
= top_menu btn
%h1 #{@bike.shop_id}: #{@bike.bike_brand}
%h4= @bike.model