Add link to change hub

This commit is contained in:
Rohan Mitchell
2013-09-23 09:17:17 +10:00
parent 9811851e29
commit 767478a0ee
3 changed files with 18 additions and 4 deletions

View File

@@ -17,12 +17,24 @@ table {
/* Style current distributor in main nav bar */
#header {
position: relative;
margin-bottom: 40px;
#logo {
position: relative;
margin-top: 40px;
padding-top: 10px;
h1 {
position: absolute;
top: 10px;
left: 0px;
}
.change-location {
position: absolute;
top: 22px;
right: -104px;
}
}
}

View File

@@ -1,8 +1,8 @@
/
replace "#logo"
/ replace "#logo"
%figure#logo.columns.six
%figure#logo.columns.eight
- if current_distributor
%h1= link_to current_distributor.name, main_app.shop_enterprise_path(current_distributor)
.change-location= link_to 'Change Location', root_path
- else
%h1= link_to "OPEN FOOD NETWORK", root_path

View File

@@ -0,0 +1,2 @@
/ set_attributes '#top-nav-bar'
/ attributes({:class => "columns eight"})