1
0
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:
lian
2018-10-27 13:19:22 +08:00
parent 0d05476914
commit dbde875981
17 changed files with 52 additions and 22 deletions

View File

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

View File

@@ -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')
},

View File

@@ -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');