1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

Merge pull request #1046 from haiwen/fileicon

Show 24px file icon for low DPI screen
This commit is contained in:
llj
2016-03-07 11:52:46 +08:00
3 changed files with 22 additions and 4 deletions

View File

@@ -35,12 +35,13 @@ define([
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;
var file_icon_size = Common.isHiDPI() ? 48 : 24;
this.$el.html(this.template({
dirent: this.model.attributes,
dirent_path: dirent_path,
encoded_path: Common.encodePath(dirent_path),
icon_url: this.model.getIconUrl(48),
icon_url: this.model.getIconUrl(file_icon_size),
url: this.model.getWebUrl(),
download_url: this.model.getDownloadUrl(),
category: dir.category,