meshviewer/lib/about.js

45 lines
2.0 KiB
JavaScript

define(function () {
'use strict';
return function () {
this.render = function render(d) {
d.innerHTML = _.t('sidebar.aboutInfo') +
'<h4>' + _.t('node.nodes') + '</h4>' +
'<p class="legend">' +
'<span class="legend-new"><span class="symbol"></span> ' + _.t('sidebar.nodeNew') + '</span>' +
'<span class="legend-online"><span class="symbol"></span> ' + _.t('sidebar.nodeOnline') + '</span>' +
'<span class="legend-offline"><span class="symbol"></span> ' + _.t('sidebar.nodeOffline') + '</span>' +
'</p>' +
'<h4>' + _.t('node.clients') + '</h4>' +
'<p class="legend">' +
'<span class="legend-24ghz"><span class="symbol"></span> 2.4 GHz</span>' +
'<span class="legend-5ghz"><span class="symbol"></span> 5 GHz</span>' +
'<span class="legend-others"><span class="symbol"></span> ' + _.t('others') + '</span>' +
'</p>' +
'<h3>AGPL 3</h3>' +
'<p>Copyright (C) Milan Pässler</p>' +
'<p>Copyright (C) Nils Schneider</p>' +
'<p>This program is free software: you can redistribute it and/or ' +
'modify it under the terms of the GNU Affero General Public ' +
'License as published by the Free Software Foundation, either ' +
'version 3 of the License, or (at your option) any later version.</p>' +
'<p>This program is distributed in the hope that it will be useful, ' +
'but WITHOUT ANY WARRANTY; without even the implied warranty of ' +
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ' +
'GNU Affero General Public License for more details.</p>' +
'<p>You should have received a copy of the GNU Affero General ' +
'Public License along with this program. If not, see ' +
'<a href="https://www.gnu.org/licenses/">' +
'https://www.gnu.org/licenses/</a>.</p>' +
'<p>The source code is available at ' +
'<a href="https://github.com/ffrgb/meshviewer">' +
'https://github.com/ffrgb/meshviewer</a>.</p>';
};
};
});