Add an optional link to Skylight dashboard to footer

This commit is contained in:
Rob Harrington
2018-05-24 12:12:58 +10:00
parent e3ea60fda5
commit fed0a81159
3 changed files with 15 additions and 0 deletions

View File

@@ -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")}

View File

@@ -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)

View File

@@ -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."