1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

check if audit enabled

This commit is contained in:
lian
2016-01-09 16:40:39 +08:00
parent cfcef3d7ad
commit a7458622b7
7 changed files with 47 additions and 20 deletions

View File

@@ -32,6 +32,7 @@ define([
var dir = this.dir;
var dirent_path = Common.pathJoin([dir.path, this.model.get('obj_name')]);
var is_pro = app.pageOptions.is_pro;
var file_audit_enabled = app.pageOptions.file_audit_enabled;
this.$el.html(this.template({
dirent: this.model.attributes,
@@ -42,6 +43,7 @@ define([
is_repo_owner: dir.is_repo_owner,
can_generate_shared_link: app.pageOptions.can_generate_shared_link,
is_pro: is_pro,
file_audit_enabled: file_audit_enabled,
repo_encrypted: dir.encrypted
}));
this.$('.file-locked-icon').attr('title', gettext("locked by {placeholder}").replace('{placeholder}', this.model.get('lock_owner_name')));