{if $filelist}
{if !$showtags && !$editmeta} {/if} {if !$selectable} {/if} {if ($showtags && $editmeta) || $selectable} {/if} {foreach from=$filelist item=file} {if !$publishing || !$file->permissions || $file->can_republish} {assign var=publishable value=1} {else} {assign var=publishable value=0} {/if} artefacttype != 'folder' || $selectfolders) && $publishable && !$file->isparent} data-id="{$file->id}" data-select="select-file" {/if} {if !$publishable && $file->artefacttype != 'folder'} title="{str tag=notpublishable section=artefact.file}"{/if}> {assign var=displaytitle value=$file->title|safe} {if $showtags && $editmeta} {/if} {if !$showtags && !$editmeta} {/if} {if $editmeta || $selectable} {/if} {if $editable && !$file->isparent} {/if} {if $edit == $file->id} {include file="artefact:file:form/editfile.tpl" prefix=$prefix fileinfo=$file groupinfo=$groupinfo} {/if} {/foreach}
{str tag=Name section=artefact.file} {str tag=Size section=artefact.file} {str tag=Date section=artefact.file}
{if $file->isparent} {if $file->artefacttype == 'folder'} {str tag=folder section=artefact.file}:{$displaytitle} {/if} {else} {if $editable}
{str tag=clickanddragtomovefile section=artefact.file arg1=$file->title} {/if} {if $file->artefacttype == 'folder'} {if $selectable} {else} {/if} {else} {if $file->icon} {else} {/if} {/if} {/if}
{if $file->artefacttype == 'folder'} {str tag=folder section=artefact.file}: {$displaytitle} {elseif !$publishable} {$displaytitle} {else} {$displaytitle} {/if} {tif $file->size ?: ''}{tif $file->size ?: ''} {tif $file->mtime ?: ''}
{if $selectable && ($file->artefacttype != 'folder' || $selectfolders) && $publishable && !$file->isparent} {/if} {if $editmeta} {if $file->locked} {str tag=Submitted section=view} {elseif !$file->isparent} {if !isset($file->can_edit) || $file->can_edit !== 0} {/if} {/if} {/if}
{if $file->locked} {str tag=Submitted section=view} {elseif !isset($file->can_edit) || $file->can_edit != 0}
{if $file->artefacttype == 'archive'} {str(tag=decompressspecific section=artefact.file arg1=$displaytitle)|escape:html|safe} {/if} {if $file->artefacttype == 'folder'} {assign var=edittext value=str(tag=editfolderspecific section=artefact.file arg1=$displaytitle)} {assign var=deletetext value=str(tag=deletefolderspecific section=artefact.file arg1=$displaytitle)} {else} {assign var=edittext value=str(tag=editspecific arg1=$displaytitle)} {assign var=deletetext value=str(tag=deletespecific arg1=$displaytitle)} {/if}
{/if}
{if !$selectable && $downloadfolderaszip} {str tag=downloadfolderziplink section=artefact.file} {/if} {else}

{str tag=nofilesfound section=artefact.file}

{/if}