From 5b43d7a87a04e431eeb4df0b2402189e0f40af30 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 3 Aug 2016 12:52:05 +1000 Subject: [PATCH] Add connect and learn links to page alert --- .../stylesheets/darkswarm/page_alert.css.sass | 4 +-- app/views/shared/_register_call.html.haml | 29 ++++++++++++++----- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/darkswarm/page_alert.css.sass b/app/assets/stylesheets/darkswarm/page_alert.css.sass index b7d6ea643e..7e66d35518 100644 --- a/app/assets/stylesheets/darkswarm/page_alert.css.sass +++ b/app/assets/stylesheets/darkswarm/page_alert.css.sass @@ -21,13 +21,13 @@ font-size: 10px line-height: 24px - a.alert-cta + .alert-cta &, & * @include csstrans color: #333 strong letter-spacing: 0.5px - &:hover, &:active, &:focus + a:hover, a:active, a:focus &, & * text-decoration: none color: white diff --git a/app/views/shared/_register_call.html.haml b/app/views/shared/_register_call.html.haml index 8c2d95ed2e..c5bf5b7830 100644 --- a/app/views/shared/_register_call.html.haml +++ b/app/views/shared/_register_call.html.haml @@ -1,7 +1,22 @@ -%a.alert-cta{href: registration_path, target: "_blank"} - %h6 - = t '.selling_on_ofn' -   - %strong - = t '.register' - %i.ofn-i_054-point-right +- if feature? :connect_learn_homepage + :css + .page-alert .alert-box { background-color: #f27052; } + + .alert-cta + %h6 + %strong + = link_to "Connect", "https://openfoodnetwork.org/au/connect/", target: '_blank' + and + %strong + = link_to "Learn", "https://openfoodnetwork.org/au/learn/", target: '_blank' + + +- else + .alert-cta + %h6 + %a{href: registration_path, target: "_blank"} + = t '.selling_on_ofn' +   + %strong + = t '.register' + %i.ofn-i_054-point-right