From fed0a81159c3e805afb88ea6bedab8dde596bb74 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 24 May 2018 12:12:58 +1000 Subject: [PATCH] Add an optional link to Skylight dashboard to footer --- app/views/shared/_footer.html.haml | 10 ++++++++++ config/application.yml.example | 3 +++ config/locales/en.yml | 2 ++ 3 files changed, 15 insertions(+) diff --git a/app/views/shared/_footer.html.haml b/app/views/shared/_footer.html.haml index de352b444a..6b04cedb5a 100644 --- a/app/views/shared/_footer.html.haml +++ b/app/views/shared/_footer.html.haml @@ -142,3 +142,13 @@ .medium-2.columns.text-center / Placeholder + -if ENV['SKYLIGHT_PUBLIC_DASHBOARD_URL'].present? + .row + .small-12.medium-8.medium-offset-2.columns.text-center + %hr.hr-light + %br + + .row + .small-12.medium-8.medium-offset-2.columns.text-center + .text.small + = t :footer_skylight_dashboard_html, {dashboard: link_to('Skylight', ENV['SKYLIGHT_PUBLIC_DASHBOARD_URL'], target: "_blank")} diff --git a/config/application.yml.example b/config/application.yml.example index a554404a45..03b33f9f11 100644 --- a/config/application.yml.example +++ b/config/application.yml.example @@ -43,6 +43,9 @@ SMTP_PASSWORD: 'f00d' # optional, see: https://www.skylight.io/oss # SKYLIGHT_AUTHENTICATION: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +# Should be set if using Skylight, adds a link to Skylight dashboard to our footer +# SKYLIGHT_PUBLIC_DASHBOARD_URL: "https://oss.skylight.io/app/applications/xxxxxxxxxx" + # Stripe Connect details for instance account # Find these under 'API keys' and 'Connect' in your Stripe account dashboard -> Account Settings # Under 'Connect', the Redirect URI should be set to https://YOUR_SERVER_URL/stripe/callbacks (e.g. https://openfoodnetwork.org.uk/stripe/callbacks) diff --git a/config/locales/en.yml b/config/locales/en.yml index 817f561b64..2394977579 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1187,6 +1187,8 @@ en: footer_legal_visit: "Find us on" footer_legal_text_html: "Open Food Network is a free and open source software platform. Our content is licensed with %{content_license} and our code with %{code_license}." + footer_skylight_dashboard_html: Performance data is available on %{dashboard}. + home_shop: Shop Now brandstory_headline: "Food, unincorporated."