mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
use name instead of email
at group/device/admin-log page
This commit is contained in:
@@ -156,7 +156,7 @@ define([
|
||||
var err_str = '';
|
||||
if (data.failed.length > 0) {
|
||||
$(data.failed).each(function(index, item) {
|
||||
err_str += Common.HTMLescape(item.email) + ': ' + Common.HTMLescape(item.error_msg) + '<br />';
|
||||
err_str += Common.HTMLescape(item.email_name) + ': ' + Common.HTMLescape(item.error_msg) + '<br />';
|
||||
});
|
||||
_this.$error.html(err_str).show();
|
||||
}
|
||||
|
@@ -23,6 +23,7 @@ define([
|
||||
render: function() {
|
||||
var data = {
|
||||
'email': this.model.get('email'),
|
||||
'name': this.model.get('name'),
|
||||
'login_ip': this.model.get('login_ip'),
|
||||
'login_success': this.model.get('login_success')
|
||||
},
|
||||
|
@@ -21,7 +21,9 @@ define([
|
||||
},
|
||||
|
||||
render: function() {
|
||||
var data = {'email': this.model.get('email')},
|
||||
var data = {'email': this.model.get('email'),
|
||||
'name': this.model.get('name')
|
||||
},
|
||||
created_at = Moment(this.model.get('datetime'));
|
||||
|
||||
data['time'] = created_at.format('LLLL');
|
||||
|
Reference in New Issue
Block a user