Make privacy policy URL configurable (#284)
This commit is contained in:
parent
01e7fd7144
commit
e5e876f717
5 changed files with 11 additions and 4 deletions
|
|
@ -30,6 +30,8 @@
|
||||||
//BR.conf.profilesUrl = 'file://YOUR_PATH_TO/profiles2/';
|
//BR.conf.profilesUrl = 'file://YOUR_PATH_TO/profiles2/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BR.conf.privacyPolicyUrl = '/privacypolicy.html';
|
||||||
|
|
||||||
// Set the initial position and zoom level of the map
|
// Set the initial position and zoom level of the map
|
||||||
BR.conf.initialMapLocation = [50.99, 9.86];
|
BR.conf.initialMapLocation = [50.99, 9.86];
|
||||||
BR.conf.initialMapZoom = 5;
|
BR.conf.initialMapZoom = 5;
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@
|
||||||
<a href="https://brouter.de/brouter/segments4/" target="_blank">data files</a>.
|
<a href="https://brouter.de/brouter/segments4/" target="_blank">data files</a>.
|
||||||
</p>
|
</p>
|
||||||
<p data-i18n="[html]about.details">
|
<p data-i18n="[html]about.details">
|
||||||
<i><a href="/privacypolicy.html" target="_blank">Privacy Policy</a></i
|
<i><a href="{{privacyPolicyUrl}}" target="_blank">Privacy Policy</a></i
|
||||||
>,
|
>,
|
||||||
<i
|
<i
|
||||||
><a href="https://github.com/nrenner/brouter-web#credits-and-licenses" target="_blank"
|
><a href="https://github.com/nrenner/brouter-web#credits-and-licenses" target="_blank"
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ BR.Map = {
|
||||||
$(map.getContainer()).outerWidth() >= 400
|
$(map.getContainer()).outerWidth() >= 400
|
||||||
? i18next.t('map.attribution-osm-long')
|
? i18next.t('map.attribution-osm-long')
|
||||||
: i18next.t('map.attribution-osm-short');
|
: i18next.t('map.attribution-osm-short');
|
||||||
|
var privacyPolicyUrl = BR.conf.privacyPolicyUrl || 'https://brouter.de/privacypolicy.html';
|
||||||
map.attributionControl.setPrefix(
|
map.attributionControl.setPrefix(
|
||||||
'© <a target="_blank" href="https://www.openstreetmap.org/copyright">' +
|
'© <a target="_blank" href="https://www.openstreetmap.org/copyright">' +
|
||||||
osmAttribution +
|
osmAttribution +
|
||||||
|
|
@ -40,7 +41,9 @@ BR.Map = {
|
||||||
' · <a href="" data-toggle="modal" data-target="#credits">' +
|
' · <a href="" data-toggle="modal" data-target="#credits">' +
|
||||||
i18next.t('map.copyright') +
|
i18next.t('map.copyright') +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
' · <a target="_blank" href="https://brouter.de/privacypolicy.html">' +
|
' · <a target="_blank" href="' +
|
||||||
|
privacyPolicyUrl +
|
||||||
|
'">' +
|
||||||
i18next.t('map.privacy') +
|
i18next.t('map.privacy') +
|
||||||
'</a>'
|
'</a>'
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -426,7 +426,9 @@
|
||||||
},
|
},
|
||||||
function(err, t) {
|
function(err, t) {
|
||||||
jqueryI18next.init(i18next, $);
|
jqueryI18next.init(i18next, $);
|
||||||
$('html').localize();
|
$('html').localize({
|
||||||
|
privacyPolicyUrl: BR.conf.privacyPolicyUrl || 'https://brouter.de/privacypolicy.html'
|
||||||
|
});
|
||||||
|
|
||||||
mapContext = BR.Map.initMap();
|
mapContext = BR.Map.initMap();
|
||||||
verifyTouchStyle(mapContext);
|
verifyTouchStyle(mapContext);
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
"data": "Data:",
|
"data": "Data:",
|
||||||
"data-description": "This is based on <a href=\"https://www.openstreetmap.org\" target=\"_blank\">OpenStreetMap</a>. It is usually updated daily, see dates of <a href=\"https://brouter.de/brouter/segments4/\" target=\"_blank\">data files</a>.",
|
"data-description": "This is based on <a href=\"https://www.openstreetmap.org\" target=\"_blank\">OpenStreetMap</a>. It is usually updated daily, see dates of <a href=\"https://brouter.de/brouter/segments4/\" target=\"_blank\">data files</a>.",
|
||||||
"description": "Online service of the BRouter routing engine. For the offline Android app and more information see <a href=\"https://brouter.de/\" target=\"_blank\">brouter.de</a>",
|
"description": "Online service of the BRouter routing engine. For the offline Android app and more information see <a href=\"https://brouter.de/\" target=\"_blank\">brouter.de</a>",
|
||||||
"details": "<i><a href=\"https://brouter.de/privacypolicy.html\" target=\"_blank\">Privacy Policy</a></i>, \n<i><a href=\"https://github.com/nrenner/brouter-web#credits-and-licenses\" target=\"_blank\">Credits</a></i>,\n<i><a href=\"https://github.com/nrenner/brouter-web/blob/master/CHANGELOG.md\" target=\"_blank\">Changelog</a></i> and\n<i><a href=\"https://github.com/nrenner/brouter-web#readme\" target=\"_blank\">more info</a></i> on the client.",
|
"details": "<i><a href=\"{{privacyPolicyUrl}}\" target=\"_blank\">Privacy Policy</a></i>, \n<i><a href=\"https://github.com/nrenner/brouter-web#credits-and-licenses\" target=\"_blank\">Credits</a></i>,\n<i><a href=\"https://github.com/nrenner/brouter-web/blob/master/CHANGELOG.md\" target=\"_blank\">Changelog</a></i> and\n<i><a href=\"https://github.com/nrenner/brouter-web#readme\" target=\"_blank\">more info</a></i> on the client.",
|
||||||
"support": "General discussions/questions, support",
|
"support": "General discussions/questions, support",
|
||||||
"title": "About"
|
"title": "About"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue