From 90d5a04368e229fc849a386b91d3284dd893702d Mon Sep 17 00:00:00 2001 From: lin-d-hop Date: Sat, 4 Nov 2017 17:40:19 +0000 Subject: [PATCH] Adding UK About pages to menus --- app/views/shared/menu/_large_menu.html.haml | 17 ++++++++++++++++ app/views/shared/menu/_mobile_menu.html.haml | 21 ++++++++++++++++++++ config/locales/en.yml | 2 ++ 3 files changed, 40 insertions(+) diff --git a/app/views/shared/menu/_large_menu.html.haml b/app/views/shared/menu/_large_menu.html.haml index 096e474c35..89420217a9 100644 --- a/app/views/shared/menu/_large_menu.html.haml +++ b/app/views/shared/menu/_large_menu.html.haml @@ -26,6 +26,23 @@ %a{href: "https://openfoodnetwork.org/au/learn/"} %span.nav-primary = t 'label_learn' + - elsif feature? :about_blog_homepage + %li + %a{href: main_app.groups_path} + %span.nav-primary + = t 'label_groups' + %li + %a{href: "http://about.openfoodnetwork.org.uk/"} + %span.nav-primary + = t 'label_about' + %li + %a{href: "http://about.openfoodnetwork.org.uk/blog/"} + %span.nav-primary + = t 'label_blog' + %li + %a{href: "http://about.openfoodnetwork.org.uk/support/"} + %span.nav-primary + = t 'label_support' - else %li %a{href: main_app.groups_path} diff --git a/app/views/shared/menu/_mobile_menu.html.haml b/app/views/shared/menu/_mobile_menu.html.haml index 69757a02a6..2d91c11558 100644 --- a/app/views/shared/menu/_mobile_menu.html.haml +++ b/app/views/shared/menu/_mobile_menu.html.haml @@ -51,6 +51,27 @@ %span.nav-primary %i.ofn-i_013-help = t 'label_learn' + - elsif feature? :about_blog_homepage + %li.li-menu + %a{href: "http://about.openfoodnetwork.org.uk/"} + %span.nav-primary + %i.ofn-i_019-map-pin + = t 'label_about' + %li.li-menu + %a{href: "http://about.openfoodnetwork.org.uk/blog"} + %span.nav-primary + %i.ofn-i_037-map + = t 'label_blog' + %li.li-menu + %a{href: "http://about.openfoodnetwork.org.uk/support"} + %span.nav-primary + %i.ofn-i_013-help + = t 'label_support' + %li.li-menu + %a{href: main_app.groups_path} + %span.nav-primary + %i.ofn-i_035-groups + = t 'label_groups' - else %li.li-menu %a{href: main_app.groups_path} diff --git a/config/locales/en.yml b/config/locales/en.yml index 0b79d64269..f4283958c7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -883,6 +883,8 @@ en: label_about: "About" label_connect: "Connect" label_learn: "Learn" + label_blog: "Blog" + label_support: "Support" label_shopping: "Shopping" label_login: "Login" label_logout: "Logout"