mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
[system/org admin] rm 'email' for group member; modified 'Info' icon for org admin side nav
This commit is contained in:
@@ -113,7 +113,21 @@ define([
|
||||
},
|
||||
|
||||
render: function() {
|
||||
this.$el.html(this.template(this.model.toJSON()));
|
||||
var data = this.model.toJSON();
|
||||
|
||||
// get user info url
|
||||
var email = this.model.get('email');
|
||||
var url = app.config.siteRoot;
|
||||
if (app.pageOptions.org_id) {
|
||||
url += 'org/useradmin/info/' + encodeURIComponent(email);
|
||||
} else {
|
||||
url += 'useradmin/info/' + encodeURIComponent(email);
|
||||
}
|
||||
|
||||
$.extend(data, {
|
||||
'user_info_url': url
|
||||
});
|
||||
this.$el.html(this.template(data));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user