luci-app-statistics: add users plugin support
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / view / statistics / plugins / users.js
1 'use strict';
2 'require baseclass';
3 'require form';
4
5 return baseclass.extend({
6 title: _('Users Plugin Configuration'),
7 description: _('The users plugin collects statistics about users logged in locally via shell. NOTE: Local shell (wtmp) tracking is NOT enabled in default builds. Additional setup is required to get non-zero counts.'),
8
9 addFormOptions: function(s) {
10 var o = s.option(form.Flag, 'enable', _('Enable this plugin'));
11 },
12
13 configSummary: function(section) {
14 return _('Monitoring shell users count');
15 }
16 });