mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add link to change hub
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/ set_attributes '#top-nav-bar'
|
||||
/ attributes({:class => "columns eight"})
|
||||
Reference in New Issue
Block a user