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

update admin log

1. add log when admin create repo
1. add log when admin batch delete user
1. update test
This commit is contained in:
lian
2017-05-23 16:05:51 +08:00
parent f79159f9d6
commit e1d0169e64
6 changed files with 142 additions and 14 deletions

View File

@@ -36,6 +36,13 @@ define([
data.admin_user_url = user_url(data.email);
switch(this.model.get('operation')) {
case 'repo_create':
data.op_title = gettext("Create Library");
data.op_details = gettext("Created library {name} with {owner} as its owner")
.replace('{name}', '<span class="bold" title="' + detail.id + '">' + Common.HTMLescape(detail.name) + '</span>')
.replace('{owner}', '<a href="' + user_url(detail.owner) + '">' + Common.HTMLescape(detail.owner) + '</a>');
break;
case 'repo_delete':
data.op_title = gettext("Delete Library");
data.op_details = gettext("Deleted library {library_name}")