Move link to ToU to attribution footer
This commit is contained in:
parent
d3d03a3177
commit
72d78db168
3 changed files with 8 additions and 8 deletions
|
@ -13,13 +13,14 @@ L.OSM.Map = L.Map.extend({
|
|||
initialize: function (id, options) {
|
||||
L.Map.prototype.initialize.call(this, id, options);
|
||||
|
||||
var copyright = I18n.t("javascripts.map.copyright", { copyright_url: "/copyright" });
|
||||
var donate = I18n.t("javascripts.map.donate_link_text", { donate_url: "https://donate.openstreetmap.org" });
|
||||
var copyright = I18n.t('javascripts.map.copyright', {copyright_url: '/copyright'});
|
||||
var donate = I18n.t('javascripts.map.donate_link_text', {donate_url: 'https://donate.openstreetmap.org'});
|
||||
var terms = I18n.t('javascripts.map.terms', {terms_url: 'https://wiki.osmfoundation.org/wiki/Terms_of_Use'});
|
||||
|
||||
this.baseLayers = [];
|
||||
|
||||
this.baseLayers.push(new L.OSM.Mapnik({
|
||||
attribution: copyright + " ♥ " + donate,
|
||||
attribution: copyright + " ♥ " + donate + ". " + terms,
|
||||
code: "M",
|
||||
keyid: "mapnik",
|
||||
name: I18n.t("javascripts.map.base.standard")
|
||||
|
@ -27,7 +28,7 @@ L.OSM.Map = L.Map.extend({
|
|||
|
||||
if (OSM.THUNDERFOREST_KEY) {
|
||||
this.baseLayers.push(new L.OSM.CycleMap({
|
||||
attribution: copyright + ". Tiles courtesy of <a href='https://www.thunderforest.com/' target='_blank'>Andy Allan</a>",
|
||||
attribution: copyright + ". Tiles courtesy of <a href='https://www.thunderforest.com/' target='_blank'>Andy Allan</a>" + ". " + terms,
|
||||
apikey: OSM.THUNDERFOREST_KEY,
|
||||
code: "C",
|
||||
keyid: "cyclemap",
|
||||
|
@ -35,7 +36,7 @@ L.OSM.Map = L.Map.extend({
|
|||
}));
|
||||
|
||||
this.baseLayers.push(new L.OSM.TransportMap({
|
||||
attribution: copyright + ". Tiles courtesy of <a href='https://www.thunderforest.com/' target='_blank'>Andy Allan</a>",
|
||||
attribution: copyright + ". Tiles courtesy of <a href='https://www.thunderforest.com/' target='_blank'>Andy Allan</a>" + ". " + terms,
|
||||
apikey: OSM.THUNDERFOREST_KEY,
|
||||
code: "T",
|
||||
keyid: "transportmap",
|
||||
|
@ -44,7 +45,7 @@ L.OSM.Map = L.Map.extend({
|
|||
}
|
||||
|
||||
this.baseLayers.push(new L.OSM.HOT({
|
||||
attribution: copyright + ". Tiles style by <a href='https://www.hotosm.org/' target='_blank'>Humanitarian OpenStreetMap Team</a> hosted by <a href='https://openstreetmap.fr/' target='_blank'>OpenStreetMap France</a>",
|
||||
attribution: copyright + ". Tiles style by <a href='https://www.hotosm.org/' target='_blank'>Humanitarian OpenStreetMap Team</a>" + " hosted by <a href='https://openstreetmap.fr/' target='_blank'>OpenStreetMap France</a>" + ". " + terms,
|
||||
code: "H",
|
||||
keyid: "hot",
|
||||
name: I18n.t("javascripts.map.base.hot")
|
||||
|
|
|
@ -48,8 +48,6 @@
|
|||
:bytemark => link_to(t("layouts.partners_bytemark"), "https://www.bytemark.co.uk"),
|
||||
:partners => link_to(t("layouts.partners_partners"), "https://hardware.openstreetmap.org/thanks/") %>
|
||||
</p>
|
||||
<p><%= t 'layouts.intro_tou_html', :tou_link => link_to(t('layouts.tou'), "https://wiki.osmfoundation.org/wiki/Terms_of_Use") %>
|
||||
</p>
|
||||
<a class="button learn-more" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
|
||||
<a class="button sign-up" href="<%= user_new_path %>"><%= t('layouts.start_mapping') %></a>
|
||||
</div>
|
||||
|
|
|
@ -2423,6 +2423,7 @@ en:
|
|||
title: "Layers"
|
||||
copyright: "© <a href='%{copyright_url}'>OpenStreetMap contributors</a>"
|
||||
donate_link_text: "<a class='donate-attr' href='%{donate_url}'>Make a Donation</a>"
|
||||
terms: "<a href='%{terms_url}' target='_blank'>Website and API terms</a>"
|
||||
site:
|
||||
edit_tooltip: Edit the map
|
||||
edit_disabled_tooltip: Zoom in to edit the map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue