]> git.openstreetmap.org Git - rails.git/commitdiff
Add donation attribution to mapnik layer
authorEden Halperin <eden.halperin@gmail.com>
Wed, 6 Nov 2013 21:14:17 +0000 (16:14 -0500)
committerEden Halperin <eden.halperin@gmail.com>
Wed, 6 Nov 2013 21:14:27 +0000 (16:14 -0500)
app/assets/javascripts/index.js
app/assets/stylesheets/common.css.scss
config/locales/en.yml

index 3db9d7ba0a56eefac958c0c4f8112bad605ff7f0..1f68c93cb6f8ca39774c616a3993861f9f0fb2d8 100644 (file)
@@ -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",
index fad878e79a93ebd3948a9241d00ee2b75a9811a0..d8b843000a343be68bab5073e2799383773fd38c 100644 (file)
@@ -871,6 +871,8 @@ nav.secondary {
   text-align: center;
 }
 
+.donate-attr { color: darken($green, 10%) !important; }
+
 /* Rules for the sidebar */
 
 .sidebar_heading {
index 6f6c9e5a63204424dd54e54aa47112a37da71d82..b43eed0d25f37fb1a331d635399c17e9126edf72 100644 (file)
@@ -2172,6 +2172,7 @@ en:
         overlays: Enable overlays for troubleshooting the map
         title: "Layers"
       copyright: "© <a href='%{copyright_url}'>OpenStreetMap contributors</a>"
+      donate_link_text: "<a class='donate-attr' href='%{donate_url}'>Make a donation</a>"
     site:
       edit_tooltip: Edit the map
       edit_disabled_tooltip: Zoom in to edit the map