Initial commit

Working directory listing. Hardcoded sidebar template.
This commit is contained in:
2011-01-16 22:59:18 +00:00
parent ee1707d86e
commit 65c560cdf0
20 changed files with 558 additions and 0 deletions

31
source/templates/list.tpl Normal file
View File

@@ -0,0 +1,31 @@
<table>
<thead>
<tr>
<th>Filename</th>
<th>Size</th>
</tr>
</thead>
<tbody>
{if $parent}
<tr>
<td><a href="{$base_uri}list/source/{$source->name()}/{$parent_path}" title="Parent Directory">../ <em>Parent Directory</em></a></td>
<td>-</td>
</tr>
{/if}
{foreach from=$files item=file}
<tr>
{if $file->isFile()}
<td>{$file->basename()}</td>
{else}
<td><a href="{$base_uri}list/source/{$source->name()}/{$path}{$file->basename()}" title="{$file->basename()}">{$file->basename()}</a></td>
{/if}
<td>{if $file->isFile()}
{$file->size()|formatFilesize}
{else}
-
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>