mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
the beginig of subject/roles admin tools
This commit is contained in:
@@ -4,7 +4,8 @@ var _ = require('lodash');
|
||||
|
||||
function init() {
|
||||
var allPlugins = [
|
||||
require('./cleanstatusdb')()
|
||||
require('./subjects')()
|
||||
, require('./cleanstatusdb')()
|
||||
, require('./futureitems')()
|
||||
];
|
||||
|
||||
@@ -32,8 +33,10 @@ function init() {
|
||||
}
|
||||
var a = p.actions[i];
|
||||
// add main plugin html
|
||||
fs.append($('<b>').css('text-decoration','underline').append(translate(a.name)));
|
||||
fs.append('<br>');
|
||||
if (a.name) {
|
||||
fs.append($('<b>').css('text-decoration','underline').append(translate(a.name)));
|
||||
fs.append('<br>');
|
||||
}
|
||||
fs.append($('<i>').append(translate(a.description)));
|
||||
fs.append($('<div>').attr('id','admin_' + p.name + '_' + i + '_html'));
|
||||
fs.append($('<button>').addClass('adminButton').attr('plugin',p.name).attr('action',i).append(translate(a.buttonLabel)));
|
||||
|
||||
Reference in New Issue
Block a user