From 0a040c7a79512ceb1120b88723a6a5ac146ef1c5 Mon Sep 17 00:00:00 2001 From: Eden Halperin Date: Wed, 6 Nov 2013 16:14:17 -0500 Subject: [PATCH] Add donation attribution to mapnik layer --- app/assets/javascripts/index.js | 7 +++++++ app/assets/stylesheets/common.css.scss | 2 ++ config/locales/en.yml | 1 + 3 files changed, 10 insertions(+) diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 3db9d7ba0..1f68c93cb 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -33,8 +33,15 @@ $(document).ready(function () { }); var copyright = I18n.t('javascripts.map.copyright', {copyright_url: '/copyright'}); + var donate = I18n.t('javascripts.map.donate_link_text', {donate_url: 'http://donate.openstreetmap.org'}); var layers = [ + new L.OSM.Mapnik({ + attribution: donate, + code: "M", + keyid: "mapnik", + name: I18n.t("javascripts.map.base.standard") + }), new L.OSM.Mapnik({ attribution: copyright, code: "M", diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index fad878e79..d8b843000 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -871,6 +871,8 @@ nav.secondary { text-align: center; } +.donate-attr { color: darken($green, 10%) !important; } + /* Rules for the sidebar */ .sidebar_heading { diff --git a/config/locales/en.yml b/config/locales/en.yml index 6f6c9e5a6..b43eed0d2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2172,6 +2172,7 @@ en: overlays: Enable overlays for troubleshooting the map title: "Layers" copyright: "© OpenStreetMap contributors" + donate_link_text: "" site: edit_tooltip: Edit the map edit_disabled_tooltip: Zoom in to edit the map -- 2.43.2