From: Eden Halperin Date: Wed, 6 Nov 2013 21:14:17 +0000 (-0500) Subject: Add donation attribution to mapnik layer X-Git-Tag: live~4674^2~171 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0a040c7a79512ceb1120b88723a6a5ac146ef1c5 Add donation attribution to mapnik layer --- 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