1
0
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:
llj
2018-09-11 15:08:27 +08:00
parent bbd10c13da
commit 76489d2ca4
4 changed files with 21 additions and 16 deletions

View File

@@ -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;
}