1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

add 'group settings'

This commit is contained in:
llj
2016-01-06 16:28:26 +08:00
parent 0ee41ce8f3
commit e9150cf555
10 changed files with 852 additions and 8 deletions

View File

@@ -28,7 +28,11 @@ define([
var obj = this.model.toJSON();
$.extend(obj, {
group_id: this.group_id,
is_staff: this.is_staff
is_staff: this.is_staff,
// for '#groups' (no 'share_from_me')
share_from_me: app.pageOptions.username == this.model.get('owner') ? true : false,
// 'owner_name' for '#groups', 'owner_nickname' for '#group/id/'
owner_name: this.model.get('owner_nickname') || this.model.get('owner_name')
});
this.$el.html(this.template(obj));
return this;