Added links for imprint and privacy information.
This commit is contained in:
parent
b5805540ec
commit
d23024241c
|
@ -160,6 +160,9 @@ Dann die `config.json` anpassen nach belieben. Es gibt die folgenden Konfigurati
|
||||||
* **`client.community.contactEmail`** Kontakt-E-Mail-Adresse der Freifunk-Community, z. B.: `"kontakt@musterstadt.freifunk.net"`
|
* **`client.community.contactEmail`** Kontakt-E-Mail-Adresse der Freifunk-Community, z. B.: `"kontakt@musterstadt.freifunk.net"`
|
||||||
* **`client.community.sites`** Liste der gültige Site-Codes in der `nodes.json`, z. B.: `["ffms-domain1", "ffms-domain2"]`
|
* **`client.community.sites`** Liste der gültige Site-Codes in der `nodes.json`, z. B.: `["ffms-domain1", "ffms-domain2"]`
|
||||||
|
|
||||||
|
* **`client.legal.privacyUrl`** optional: URL zum Impressum, z. B.: `"http://map.musterstadt.freifunk.net/impressum"`
|
||||||
|
* **`client.legal.imprintUrl`** optional: URL zur Datenschutzerklärung, z. B.: `"http://map.musterstadt.freifunk.net/datenschutz"`
|
||||||
|
|
||||||
* **`client.map.mapUrl`** URL der Knotenkarte, z. B.: `"http://map.musterstadt.freifunk.net"`
|
* **`client.map.mapUrl`** URL der Knotenkarte, z. B.: `"http://map.musterstadt.freifunk.net"`
|
||||||
|
|
||||||
* **`client.monitoring.enabled`** Gibt an, ob die Nutzer Monitoring für ihre Knoten aktivieren können sollen, z. B.: `true`
|
* **`client.monitoring.enabled`** Gibt an, ob die Nutzer Monitoring für ihre Knoten aktivieren können sollen, z. B.: `true`
|
||||||
|
|
|
@ -55,14 +55,30 @@ angular.module('ffffngAdmin').config(function(NgAdminConfigurationProvider, Rest
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
admin
|
var header =
|
||||||
.header(
|
|
||||||
'<div class="navbar-header">' +
|
'<div class="navbar-header">' +
|
||||||
'<a class="navbar-brand" href="#" ng-click="appController.displayHome()">' +
|
'<a class="navbar-brand" href="#" ng-click="appController.displayHome()">' +
|
||||||
title + ' ' +
|
title + ' ' +
|
||||||
'<small style="font-size: 0.7em;">(<fa-version></fa-version>)</small>' +
|
'<small style="font-size: 0.7em;">(<fa-version></fa-version>)</small>' +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
'</div>' +
|
'</div>';
|
||||||
|
if (config.legal.imprintUrl) {
|
||||||
|
header +=
|
||||||
|
'<p class="navbar-text navbar-right">' +
|
||||||
|
'<a href="' + config.legal.imprintUrl + '" target="_blank">' +
|
||||||
|
'Imprint' +
|
||||||
|
'</a>' +
|
||||||
|
'</p>';
|
||||||
|
}
|
||||||
|
if (config.legal.privacyUrl) {
|
||||||
|
header +=
|
||||||
|
'<p class="navbar-text navbar-right">' +
|
||||||
|
'<a href="' + config.legal.privacyUrl + '" target="_blank">' +
|
||||||
|
'Privacy' +
|
||||||
|
'</a>' +
|
||||||
|
'</p>';
|
||||||
|
}
|
||||||
|
header +=
|
||||||
'<p class="navbar-text navbar-right">' +
|
'<p class="navbar-text navbar-right">' +
|
||||||
'<a href="https://github.com/freifunkhamburg/ffffng/issues" target="_blank">' +
|
'<a href="https://github.com/freifunkhamburg/ffffng/issues" target="_blank">' +
|
||||||
'<i class="fa fa-bug" aria-hidden="true"></i> Report Error' +
|
'<i class="fa fa-bug" aria-hidden="true"></i> Report Error' +
|
||||||
|
@ -77,8 +93,10 @@ angular.module('ffffngAdmin').config(function(NgAdminConfigurationProvider, Rest
|
||||||
'<a href="' + pathPrefix + '/" target="_blank">' +
|
'<a href="' + pathPrefix + '/" target="_blank">' +
|
||||||
'<i class="fa fa-external-link" aria-hidden="true"></i> Frontend' +
|
'<i class="fa fa-external-link" aria-hidden="true"></i> Frontend' +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
'</p>'
|
'</p>';
|
||||||
)
|
|
||||||
|
admin
|
||||||
|
.header(header)
|
||||||
.baseApiUrl(pathPrefix + '/internal/api/')
|
.baseApiUrl(pathPrefix + '/internal/api/')
|
||||||
.debug(true);
|
.debug(true);
|
||||||
|
|
||||||
|
|
|
@ -13,5 +13,15 @@
|
||||||
<i class="fa fa-bug" aria-hidden="true"></i> Fehler melden
|
<i class="fa fa-bug" aria-hidden="true"></i> Fehler melden
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li ng-if="config.legal.privacyUrl">
|
||||||
|
<a href="{{config.legal.privacyUrl}}" target="_blank">
|
||||||
|
Datenschutz
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li ng-if="config.legal.imprintUrl">
|
||||||
|
<a href="{{config.legal.imprintUrl}}" target="_blank">
|
||||||
|
Impressum
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -44,6 +44,10 @@
|
||||||
"contactEmail": "kontakt@musterstadt.freifunk.net",
|
"contactEmail": "kontakt@musterstadt.freifunk.net",
|
||||||
"sites": ["ffms-domain1", "ffms-domain2"]
|
"sites": ["ffms-domain1", "ffms-domain2"]
|
||||||
},
|
},
|
||||||
|
"legal": {
|
||||||
|
"privacyUrl": "http://map.musterstadt.freifunk.net/datenschutz",
|
||||||
|
"imprintUrl": "http://map.musterstadt.freifunk.net/impressum"
|
||||||
|
},
|
||||||
"map": {
|
"map": {
|
||||||
"mapUrl": "http://map.musterstadt.freifunk.net"
|
"mapUrl": "http://map.musterstadt.freifunk.net"
|
||||||
},
|
},
|
||||||
|
|
|
@ -99,6 +99,10 @@ var defaultConfig = {
|
||||||
contactEmail: 'kontakt@musterstadt.freifunk.net',
|
contactEmail: 'kontakt@musterstadt.freifunk.net',
|
||||||
sites: []
|
sites: []
|
||||||
},
|
},
|
||||||
|
legal: {
|
||||||
|
privacyUrl: null,
|
||||||
|
imprintUrl: null
|
||||||
|
},
|
||||||
map: {
|
map: {
|
||||||
mapUrl: 'http://map.musterstadt.freifunk.net'
|
mapUrl: 'http://map.musterstadt.freifunk.net'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue