{strip} {* don't replicate the surrounding div when inserting ajax content *} {if !$gBitThemes->isAjaxRequest()}
{/if} {if $gContent->mStorage}
{formlabel label="Attachments"} {foreach from=$gContent->mStorage item=storage key=attachmentId name=atts}
{if $storage.is_mime} {include file=$gLibertySystem->getMimeTemplate('storage',$storage.attachment_plugin_guid) thumbsize=small preferences=$gContent->mStoragePrefs.$attachmentId attachment=$storage} {else} {jspopup href=$storage.source_url title=$storage.title|default:$storage.filename notra=1 img=$storage.thumbnail_url.avatar}
{tr}ID:{/tr} {$storage.attachment_id}
{$storage.filename} {$storage.file_size|display_bytes}
{/if} {if $uploadTab} {* these radio buttons can not be displayed twice in the same form due to interference in $_REQUEST *} {/if}
{forminput} {formhelp note="Wiki Code"} {/forminput} {forminput} {formhelp note="HTML `$size`"} {/forminput}
{if $gBitUser->isAdmin() || ($storage.user_id == $gBitUser->mUserId) } {capture name=urlArgs}{$attachmentBaseArgs}content_id={$gContent->mContentId}{if empty($gContent->mContentId)}{foreach from=$gContent->mStorage key=key item=val}&STORAGE[existing][{$val.attachment_id}]={$val.attachment_id}{/foreach}{/if}{/capture} {if $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} {biticon ipackage="icons" iname="user-trash" iexplain="delete"} {else} {if $storage.is_mime} {biticon ipackage="icons" iname="folder-open" iexplain="View"} {/if} {biticon ipackage="icons" iname="user-trash" iexplain="Delete"} {/if} {/if}
{/foreach} {if $uploadTab}
{/if}
{/if} {if !$gBitThemes->isAjaxRequest()}
{/if} {/strip}