<#macro templateTree filepath> <@tools.fileList type='task' path=filepath> <#list list as a> <#if !a.directory><@t.merge 'paths' filepath+'/'+a.fileName/> <@sys.lock userId=admin.id itemType='taskTemplate' 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>
  • <#local path=filepath+'/'+a.fileName> <#if !a.directory && lockMap?has_content && lockMap[path]?has_content> <#assign lockUser=(userMap[lockMap[path].userId?string].nickname)!''/> ${a.fileName} <#if a.directory>
  • <#else>
  • <@t.page 'empty_directory'/>
  • <@t.page 'task_template.create'/>

      <@templateTree ''/>