{strip} {if $gContent->mStorage} {assign var=thumbsize value=$gBitSystem->getConfig('liberty_auto_display_attachment_thumbs')} {if !$thumbsize} {assign var=thumbsize value=small} {/if}
{foreach from=$gContent->mStorage item=attachment key=id} {/foreach}
{tr}Files attached to this page{/tr}
{tr}File{/tr} {tr}Type{/tr} {tr}Size{/tr} {tr}Last Modified{/tr} {tr}Uploaded by{/tr}
{if $attachment.source_url}{/if} {$attachment.filename} {if $attachment.source_url}{/if} {if $attachment.source_url}{/if} {$attachment.filename} {if $attachment.source_url}{/if} {$attachment.mime_type} {$attachment.file_size|display_bytes} {$attachment.last_modified|bit_short_datetime} {displayname user_id=$attachment.user_id}
{* {foreach from=$gContent->mStorage item=attachment key=id} {* TODO: this should not be necessary anymore as soon as we've faded out old attachment plugins * } {if $attachment.is_mime} {include file=$gLibertySystem->getMimeTemplate('storage',$attachment.attachment_plugin_guid) preferences=$gContent->mStoragePrefs.$id} {else} {* TODO: get rid of old plugin system * } {capture name="size"}{$attachment.file_size|display_bytes}{/capture} {capture name="popup"}{include file="bitpackage:kernel/popup_box.tpl" content="`$attachment.filename`
{tr}Size{/tr}: `$smarty.capture.size`" noclose=true}{/capture} {if $attachment.thumbnail_url.$thumbsize} {* by setting hideprimary, you can hide the primary thumbnail * } {if !$attachment.is_primary || ( $attachment.is_primary && !$hideprimary )}

{if $attachment.source_url}{/if} {$attachment.filename} {$attachment.filename} {if $attachment.source_url}{/if}

{/if} {/if} {/if} {/foreach} *}
{/if} {/strip}