Added links for imprint and privacy information.

This commit is contained in:
baldo 2018-05-21 13:22:28 +02:00
parent b5805540ec
commit d23024241c
5 changed files with 62 additions and 23 deletions

View file

@ -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`

View file

@ -55,30 +55,48 @@ angular.module('ffffngAdmin').config(function(NgAdminConfigurationProvider, Rest
}); });
} }
var header =
'<div class="navbar-header">' +
'<a class="navbar-brand" href="#" ng-click="appController.displayHome()">' +
title + ' ' +
'<small style="font-size: 0.7em;">(<fa-version></fa-version>)</small>' +
'</a>' +
'</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">' +
'<a href="https://github.com/freifunkhamburg/ffffng/issues" target="_blank">' +
'<i class="fa fa-bug" aria-hidden="true"></i> Report Error' +
'</a>' +
'</p>' +
'<p class="navbar-text navbar-right">' +
'<a href="https://github.com/freifunkhamburg/ffffng" target="_blank">' +
'<i class="fa fa-code" aria-hidden="true"></i> Source Code' +
'</a>' +
'</p>' +
'<p class="navbar-text navbar-right">' +
'<a href="' + pathPrefix + '/" target="_blank">' +
'<i class="fa fa-external-link" aria-hidden="true"></i> Frontend' +
'</a>' +
'</p>';
admin admin
.header( .header(header)
'<div class="navbar-header">' +
'<a class="navbar-brand" href="#" ng-click="appController.displayHome()">' +
title + ' ' +
'<small style="font-size: 0.7em;">(<fa-version></fa-version>)</small>' +
'</a>' +
'</div>' +
'<p class="navbar-text navbar-right">' +
'<a href="https://github.com/freifunkhamburg/ffffng/issues" target="_blank">' +
'<i class="fa fa-bug" aria-hidden="true"></i> Report Error' +
'</a>' +
'</p>' +
'<p class="navbar-text navbar-right">' +
'<a href="https://github.com/freifunkhamburg/ffffng" target="_blank">' +
'<i class="fa fa-code" aria-hidden="true"></i> Source Code' +
'</a>' +
'</p>' +
'<p class="navbar-text navbar-right">' +
'<a href="' + pathPrefix + '/" target="_blank">' +
'<i class="fa fa-external-link" aria-hidden="true"></i> Frontend' +
'</a>' +
'</p>'
)
.baseApiUrl(pathPrefix + '/internal/api/') .baseApiUrl(pathPrefix + '/internal/api/')
.debug(true); .debug(true);

View file

@ -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>

View file

@ -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"
}, },

View file

@ -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'
}, },