{if isset($smarty.request.fileIds) && !isset($selectedFileIdsString)} {assign var=selectedFileIdsString value=$smarty.request.fileIds} {/if}
{if ($user->data.user_id eq $post->data.post_user && isset($smarty.request.post_id)) || !isset($smarty.request.post_id)}
{if isset($uploadError)}
{$uploadError}
{/if}
{if $smarty.request.behaviour eq 'simple'}

{'Choose the file you want, and then press the Upload file button below.'|gettext}

{else} {if $smarty.request.mode eq "check"} {/if} {/if}
{/if}
{if $availableFiles|@count eq 0} {if $displayDefaultAndNothingBannerOptions}
{elseif ($user->data.user_id eq $post->data.post_user && isset($smarty.request.post_id)) || !isset($smarty.request.post_id)}

{"You have not uploaded any files"|gettext}

{"Use the form above to upload files. They'll then appear here, and be available every time you make a post."|gettext}

{else}

{"No attached files"|gettext}

{/if} {else} {if $displayDefaultAndNothingBannerOptions}
{elseif intval($smarty.request.allowNone) eq 1}
{/if} {foreach from=$availableFiles item=cFile} {if $cFile->data.file_origin eq 'upload'}
{else}
{/if} {/foreach} {/if}
{if $smarty.request.updateTarget eq "editor"} {else} {/if}