blob: d928537ff889260e09df77ba68e468c152a948ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{* $Header: /cvsroot/bitweaver/_bit_liberty/templates/list_comment_files_inc.tpl,v 1.1 2009/03/17 20:23:21 wjames5 Exp $ *}
{strip}
{if $storageHash}
<h4 class="table">
{if $storageHash|@count > 1}
{tr}Files{/tr}
{else}
{tr}File{/tr}
{/if}
</h4>
{if $errors}
{formfeedback warning=`$errors`}
{/if}
<table class="data">
<tr>
<th style="width:40%;">{tr}File{/tr}</th>
<th style="width:10%;">{tr}Type{/tr}</th>
<th style="width:10%;">{tr}Size{/tr}</th>
{* not really pertinent but here in case of some future need
<th style="width:20%;">{tr}Last Modified{/tr}</th>
*}
</tr>
{foreach from=$storageHash item=item key=id}
<tr class="{cycle values="odd,even"}" >
<td style="text-align:left;">
{jspopup notra=1 href="`$item.display_url`&popup=y" title=$item.filename|escape}
</td>
<td style="text-align:center;">
{$item.mime_type}
</td>
<td style="text-align:center;">
{$item.file_size|display_bytes}
</td>
{* not really pertinent but here in case of some future need
<td style="text-align:right;">
{$item.last_modified|bit_short_datetime}
</td>
*}
</tr>
{/foreach}
</table>
{/if}
{/strip}
|