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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user