v1.18.x
pichalite 9 years ago
parent 09b93ac6ff
commit e878b32444

@ -47,6 +47,7 @@
"details.hidden": "Hidden", "details.hidden": "Hidden",
"details.hidden_help": "If enabled, this group will not be found in the groups listing, and users will have to be invited manually", "details.hidden_help": "If enabled, this group will not be found in the groups listing, and users will have to be invited manually",
"details.delete_group": "Delete Group", "details.delete_group": "Delete Group",
"details.private_system_help": "Private groups is disabled at system level, this option does not do anything",
"event.updated": "Group details have been updated", "event.updated": "Group details have been updated",
"event.deleted": "The group \"%1\" has been deleted", "event.deleted": "The group \"%1\" has been deleted",

@ -66,7 +66,7 @@ groupsController.get = function(req, res, callback) {
return callback(err); return callback(err);
} }
group.isOwner = true; group.isOwner = true;
res.render('admin/manage/group', {group: group}); res.render('admin/manage/group', {group: group, allowPrivateGroups: parseInt(meta.config.allowPrivateGroups, 10) === 1});
}); });
}; };

@ -90,6 +90,7 @@ groupsController.details = function(req, res, callback) {
} }
results.title = '[[pages:group, ' + results.group.displayName + ']]'; results.title = '[[pages:group, ' + results.group.displayName + ']]';
results.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[pages:groups]]', url: '/groups' }, {text: results.group.displayName}]); results.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[pages:groups]]', url: '/groups' }, {text: results.group.displayName}]);
results.allowPrivateGroups = parseInt(meta.config.allowPrivateGroups, 10) === 1;
plugins.fireHook('filter:group.build', {req: req, res: res, templateData: results}, next); plugins.fireHook('filter:group.build', {req: req, res: res, templateData: results}, next);
} }
], function(err, results) { ], function(err, results) {

@ -40,6 +40,11 @@
<div class="checkbox"> <div class="checkbox">
<label> <label>
<input id="group-private" name="private" type="checkbox"<!-- IF group.private --> checked<!-- ENDIF group.private -->> <strong>[[groups:details.private]]</strong> <input id="group-private" name="private" type="checkbox"<!-- IF group.private --> checked<!-- ENDIF group.private -->> <strong>[[groups:details.private]]</strong>
<!-- IF !allowPrivateGroups -->
<p class="help-block">
[[groups:details.private_system_help]]
</p>
<!-- ENDIF !allowPrivateGroups -->
<p class="help-block"> <p class="help-block">
[[groups:details.private_help]] [[groups:details.private_help]]
</p> </p>

Loading…
Cancel
Save