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

sysadmin reconstruct repo page (#3980)

This commit is contained in:
Leo
2019-09-24 12:18:53 +08:00
committed by Daniel Pan
parent a68e28d034
commit d0e28c0365
24 changed files with 2486 additions and 15 deletions

View File

@@ -312,6 +312,16 @@ export const Utils = {
}
},
getAdminTemplateDirentIcon: function (dirent, isBig) {
let size = this.isHiDPI() ? 48 : 24;
size = isBig ? 192 : size;
if (dirent.is_file) {
return this.getFileIconUrl(dirent.obj_name, size);
} else {
return this.getFolderIconUrl();
}
},
getFolderIconUrl: function(readonly = false, size) {
if (!size) {
size = Utils.isHiDPI() ? 48 : 24;