<#assign editableSubfix=['css','js','html','shtml','htm','xml','txt','svg','md','text','json']/>
<@tools.fileList type='file' path=path orderField=orderField> <#if path?has_content> <#list list as a> <#if !a.directory><@t.merge 'paths' path?has_content?then(path+'/','')+a.fileName/> <@sys.lock userId=admin.id itemType='file' itemIds=t.paths><#assign lockMap=map!/> <#if lockMap?has_content> <#list lockMap as k,lock> <#if lock.userId?has_content><@t.merge 'userIds' lock.userId/> <@sys.user ids=t.userIds><#assign userMap=map!/> <#list list as a> <#assign filePath=path?has_content?then(path+'/','')+a.fileName/>
<@t.page 'name'/> <@t.page 'modified_date'/> <@t.page 'create_date'/> <@t.page 'file.size'/> <@t.page 'operate'/>
<@t.page 'button.return'/>
<#if a.directory> ${a.fileName} <#else> <#if lockMap?has_content && lockMap[filePath]?has_content> <#assign lockUser=(userMap[lockMap[filePath].userId?string].nickname)!''/> ${a.fileName} ${a.lastModifiedTime?datetime} ${a.creationTime?datetime} <@t.fileSize a.size/> <#if a.directory> <@t.page 'button.compress'/> <#else> <#if a.fileName?ends_with('.zip')> <@t.page 'button.decompress'/> <#if editableSubfix?seq_contains(a.fileName?keep_after_last('.')?lower_case)> <@t.page 'button.edit'/> <@t.page 'button.view'/>