Passed
Push — develop ( 9a1b4b...96b452 )
by Xaver
03:40
created

lib/about.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 44
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 35
mnd 0
bc 0
fnc 3
dl 0
loc 44
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A about.js ➔ render 0 38 3
1
define(function () {
2
  'use strict';
3
4
  return function () {
5
    this.render = function render(d) {
6
      d.innerHTML = _.t('sidebar.aboutInfo') +
7
        '<h4>' + _.t('node.nodes') + '</h4>' +
8
        '<p class="legend">' +
9
        '<span class="legend-new"><span class="symbol"></span> ' + _.t('sidebar.nodeNew') + '</span>' +
10
        '<span class="legend-online"><span class="symbol"></span> ' + _.t('sidebar.nodeOnline') + '</span>' +
11
        '<span class="legend-offline"><span class="symbol"></span> ' + _.t('sidebar.nodeOffline') + '</span>' +
12
        '</p>' +
13
        '<h4>' + _.t('node.clients') + '</h4>' +
14
        '<p class="legend">' +
15
        '<span class="legend-24ghz"><span class="symbol"></span> 2.4 GHz</span>' +
16
        '<span class="legend-5ghz"><span class="symbol"></span> 5 GHz</span>' +
17
        '<span class="legend-others"><span class="symbol"></span> ' + _.t('others') + '</span>' +
18
        '</p>' +
19
        '<h3>AGPL 3</h3>' +
20
21
        '<p>Copyright (C) Milan Pässler</p>' +
22
        '<p>Copyright (C) Nils Schneider</p>' +
23
24
        '<p>This program is free software: you can redistribute it and/or ' +
25
        'modify it under the terms of the GNU Affero General Public ' +
26
        'License as published by the Free Software Foundation, either ' +
27
        'version 3 of the License, or (at your option) any later version.</p>' +
28
29
        '<p>This program is distributed in the hope that it will be useful, ' +
30
        'but WITHOUT ANY WARRANTY; without even the implied warranty of ' +
31
        'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the ' +
32
        'GNU Affero General Public License for more details.</p>' +
33
34
        '<p>You should have received a copy of the GNU Affero General ' +
35
        'Public License along with this program. If not, see ' +
36
        '<a href="https://www.gnu.org/licenses/">' +
37
        'https://www.gnu.org/licenses/</a>.</p>' +
38
39
        '<p>The source code is available at ' +
40
        '<a href="https://github.com/ffrgb/meshviewer">' +
41
        'https://github.com/ffrgb/meshviewer</a>.</p>';
42
    };
43
  };
44
});
45