{* Smarty template *}
<table cellpadding="0" cellspacing="0" border="0" class="tableView">
<tr>
<th>{message key='resource.form.fileName'}</th>
<td>{$viewed->file_name|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.title'}</th>
<td>{$viewed->title|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.size'}</th>
<td>{$viewed->size|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.download'}</th>
<td>{$viewed->isDownloadYesno()|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.mimeType'}</th>
{assign var="type" value=$viewed->type}
<td>{$viewed->getMimeType()|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.type'}</th>
{assign var="type" value=$viewed->type}
<td>{message key="resource.form.type.$type"}</td>
</tr>
<tr>
<th>{message key='resource.form.published'}</th>
<td>{$viewed->isPublishedYesno()|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.modificationDate'}</th>
<td>{formatDate date=$viewed->modification_date|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.publicationDate'}</th>
<td>{formatDate date=$viewed->publication_date|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.expirationDate'}</th>
<td>{formatDate date=$viewed->expiration_date|escape}</td>
</tr>
<tr>
<th>{message key='resource.form.active'}</th>
<td>{$viewed->isActiveYesno()|escape}</td>
</tr>
</table>
{if $viewed->isImage()}
<img src="image.php?fileName={$viewed->file_name}&size=thumbnail&rnd={random}">
<br>
{/if}
{if $viewed->isActive()}
<div class="bottomMargin">
<a href="{buildUrl friendly='resource' fileName=$viewed->file_name}"{if !$viewed->download} target="_blank"{/if}>{message key='resource.form.link.download'}</a>
</div>
{/if}
{include file="after_view.tpl"}