Merge branch 'master' of https://github.com/pichalite/NodeBB into pichalite-master

v1.18.x
Julian Lam 10 years ago
commit d10fd6248e

@ -115,6 +115,9 @@
// Groups helpers
helpers.membershipBtn = function(groupObj) {
if (groupObj.name==='administrators') {
return '';
} else {
if (groupObj.isMember) {
return '<button class="btn btn-danger" data-action="leave" data-group="' + groupObj.displayName + '"><i class="fa fa-times"></i> Leave Group</button>';
} else {
@ -126,6 +129,7 @@
return '<button class="btn btn-success" data-action="join" data-group="' + groupObj.displayName + '"><i class="fa fa-plus"></i> Join Group</button>';
}
}
}
};
helpers.spawnPrivilegeStates = function(member, privileges) {

Loading…
Cancel
Save