skins: Improve clientPluginNames class helper

Moving classes to html tag so it can be used to style other part of template depending on plugins like #users, #chat etc...
Rename plugin class with "plugin-" prefix, because there were conflicts with some plugins using the same .ep_font_color class to apply css rules
This commit is contained in:
Sebastian Castro 2019-02-15 17:59:06 +01:00 committed by muxator
parent 401db8fce3
commit 378dbe8485
4 changed files with 23 additions and 23 deletions

View file

@ -146,7 +146,7 @@ exports.clientPluginNames = function() {
var client_plugin_names = _.uniq(
exports.plugins.parts
.filter(function(part) { return part.hasOwnProperty('client_hooks'); })
.map(function(part) { return part['plugin']; })
.map(function(part) { return 'plugin-' + part['plugin']; })
);
return client_plugin_names;