Commit c8ede094 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Show delete button for non-empty folders


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 03f77081
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
<td>{$file->mtime}</td> <td>{$file->mtime}</td>
<td> <td>
{if $editable && !$file->isparent} {if $editable && !$file->isparent}
{if !isset($file->can_edit) || $file->can_edit !== 0}<input type="submit" class="submit btn-edit s" name="{$prefix}_edit[{$file->id}]" value="{str tag=edit}" />{/if} {if !isset($file->can_edit) || $file->can_edit !== 0}<input type="submit" class="submit btn-edit s" name="{$prefix}_edit[{$file->id}]" value="{str tag=edit}" />
{if $file->childcount == 0}<input type="submit" class="submit btn-del s" name="{$prefix}_delete[{$file->id}]" value="{str tag=delete}" />{/if} <input type="submit" class="submit btn-del s" name="{$prefix}_delete[{$file->id}]" value="{str tag=delete}" />{/if}
{/if} {/if}
{if $selectable && $file->artefacttype != 'folder' && $publishable} {if $selectable && $file->artefacttype != 'folder' && $publishable}
<input type="submit" class="select small" name="{$prefix}_select[{$file->id}]" id="{$prefix}_select_{$file->id}" value="{str tag=select}" /> <input type="submit" class="select small" name="{$prefix}_select[{$file->id}]" id="{$prefix}_select_{$file->id}" value="{str tag=select}" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment