Files
openfoodnetwork/app/views/shared/_footer.html.haml
Maikel Linke 97bcbb81b9 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.
2016-04-01 14:39:43 +11:00

153 lines
5.1 KiB
Plaintext

%footer
.footer-global
.row
.small-12.columns.text-center
.logo
%img{src: "/assets/logo-white-notext.png", width: "120px"}
.row
.small-12.medium-8.medium-offset-2.columns.text-center
.alert-box
= render 'shared/register_call'
.row
.small-12.medium-4.medium-offset-2.columns.text-center
%h6
= t :footer_global_headline
%p
%a{href: "http://www.openfoodnetwork.org", target: "_blank"}
= t :footer_global_home
%span |
%a{href: "http://www.openfoodnetwork.org/news/", target: "_blank"}
= t :footer_global_news
%span |
%a{href: "http://www.openfoodnetwork.org/about/history-team/", target: "_blank"}
= t :footer_global_about
%span |
%a{href: "http://www.openfoodnetwork.org/contact/", target: "_blank"}
= t :footer_global_contact
.small-12.medium-4.columns.text-center
%h6
= t :footer_sites_headline
%p
%a{href: "http://dev.openfoodnetwork.org", target: "_blank"}
= t :footer_sites_developer
%span |
%a{href: "http://community.openfoodnetwork.org", target: "_blank"}
= t :footer_sites_community
%span |
%a{href: "http://www.openfoodnetwork.org/platform/user-guide/", target: "_blank"}
= t :footer_sites_userguide
.medium-2.columns.text-center
/ Placeholder
.footer-local
.row
.small-12.medium-2.medium-offset-2.columns.text-center
%p.secure-icon
%i.ofn-i_017-locked
.small-12.medium-6.columns.text-center
%p.text-big.secure-text
= t :footer_secure
%p.secure-text
= t :footer_secure_text
.small-12.medium-2.columns
.row
.small-12.medium-8.medium-offset-2.columns.text-center
%hr.hr-light
%br
.row
.small-6.medium-3.medium-offset-2.columns.text-left
// This is the instance-managed set of links:
%h4
= t :footer_contact_headline
%p.social-icons
- if ContentConfig.footer_facebook_url.present?
%a{href: ContentConfig.footer_facebook_url}
%i.ofn-i_044-facebook
- if ContentConfig.footer_twitter_url.present?
%a{href: ContentConfig.footer_twitter_url}
%i.ofn-i_041-twitter
- if ContentConfig.footer_instagram_url.present?
%a{href: ContentConfig.footer_instagram_url}
%i.ofn-i_043-instagram
- if ContentConfig.footer_linkedin_url.present?
%a{href: ContentConfig.footer_linkedin_url}
%i.ofn-i_042-linkedin
- if ContentConfig.footer_googleplus_url.present?
%a{href: ContentConfig.footer_googleplus_url}
%i.ofn-i_046-g
- if ContentConfig.footer_pinterest_url.present?
%a{href: ContentConfig.footer_pinterest_url}
%i.ofn-i_045-pintrest
- if ContentConfig.footer_email.present?
%p
%a{href: ContentConfig.footer_email.reverse, mailto: true, target: '_blank'}
= t :footer_contact_email
= render_markdown(ContentConfig.footer_links_md).html_safe
.small-6.medium-3.columns.text-left
%h4
= t :footer_nav_headline
%p
%a{href: "/shops"}
= t :label_shops
%p
%a{href: "/map"}
= t :label_map
%p
%a{href: "/producers"}
= t :label_producers
%p
%a{href: "/groups"}
= t :label_groups
%p
%a{href: ContentConfig.footer_about_url}
= t :label_about
.small-12.medium-2.columns.text-left
%h4
= t :footer_join_headline
%p
%a{href: "/producers/signup"}
= t :footer_join_producers
%p
%a{href: "/shops/signup"}
= t :footer_join_hubs
%p
%a{href: "/groups/signup"}
= t :footer_join_groups
%p
%a{href: "http://www.openfoodnetwork.org/platform/food-system-partners/", target: "_blank"}
= t :footer_join_partners
.medium-2.columns.text-center
/ Placeholder
.row
.small-12.medium-8.medium-offset-2.columns.text-center
%hr.hr-light
%br
.row
.small-12.medium-3.medium-offset-2.columns.text-left
%a{href: root_path}
%img{src: ContentConfig.footer_logo.url, width: "220"}
.small-12.medium-5.columns.text-left
%p.text-small
= t :footer_legal_call
%a{href: ContentConfig.footer_tos_url}
= t :footer_legal_tos
|
= t :footer_legal_visit
%a{href:"https://github.com/openfoodfoundation/openfoodnetwork", target: "_blank"} GitHub
%p.text-small
= t :footer_legal_text_html, {content_license: link_to('CC BY-SA 3.0', 'https://creativecommons.org/licenses/by-sa/3.0/'), code_license: link_to('AGPL 3', 'https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)')}
.medium-2.columns.text-center
/ Placeholder