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 // Groups helpers
helpers.membershipBtn = function(groupObj) { helpers.membershipBtn = function(groupObj) {
if (groupObj.name==='administrators') {
return '';
} else {
if (groupObj.isMember) { 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>'; return '<button class="btn btn-danger" data-action="leave" data-group="' + groupObj.displayName + '"><i class="fa fa-times"></i> Leave Group</button>';
} else { } 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>'; 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) { helpers.spawnPrivilegeStates = function(member, privileges) {

Loading…
Cancel
Save