Change text of register call in the dropdown

Unified code for the dropdown and the footer.
Both contain the register call and are both pointing to the register
path now. The footer still pointed to the global site before.
This commit is contained in:
Maikel Linke
2016-03-30 16:46:06 +11:00
parent 04f661f646
commit 97bcbb81b9
5 changed files with 14 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ footer
background-color: transparent
border: none
padding: 0
a.big-alert
a.alert-cta
@include csstrans
width: 100%
border: 1px solid rgba($dark-grey, 0.35)

View File

@@ -7,13 +7,7 @@
.row
.small-12.medium-8.medium-offset-2.columns.text-center
.alert-box
%a.big-alert{href: "http://www.openfoodnetwork.org", target: "_blank"}
%h6
= t :alert_selling_on_ofn
 
%strong
= t :alert_start_here
%i.ofn-i_054-point-right
= render 'shared/register_call'
.row
.small-12.medium-4.medium-offset-2.columns.text-center
%h6

View File

@@ -0,0 +1,7 @@
%a.alert-cta{href: registration_path, target: "_blank"}
%h6
= t '.selling_on_ofn'
 
%strong
= t '.register'
%i.ofn-i_054-point-right

View File

@@ -1,10 +1,4 @@
.text-center.page-alert.fixed{ "ofn-page-alert" => true }
.alert-box
%a.alert-cta{href: registration_path, target: "_blank"}
%h6
= t 'alert_selling_on_ofn'
 
%strong
= t 'alert_start_here'
%i.ofn-i_054-point-right
= render 'shared/register_call'
%a.close{ ng: { click: "close()" } } ×

View File

@@ -118,6 +118,10 @@ en:
show_closed_shops: "Show closed shops"
hide_closed_shops: "Hide closed shops"
show_on_map: "Show all on the map"
shared:
register_call:
selling_on_ofn: "Interested in getting on the Open Food Network?"
register: "Register here"
shop:
messages:
login: "login"
@@ -167,8 +171,6 @@ en:
on_demand: On demand
none: None
alert_selling_on_ofn: "Interested in selling food on the Open Food Network?"
alert_start_here: "Start here"
label_shops: "Shops"
label_map: "Map"
label_producers: "Producers"