{* $Id$ *} {if $tiki_p_wiki_view_attachments == 'y' || $tiki_p_wiki_admin_attachments == 'y' || $tiki_p_wiki_attach_files == 'y'}
{* Generate table if view permissions granted and if count of attached files > 0 *} {if ($tiki_p_wiki_view_attachments == 'y' || $tiki_p_wiki_admin_attachments == 'y') && count($atts) > 0} {if isset($offset)} {$offsetparam = "offset={$offset}&"} {else} {$offsetparam = ''} {/if}
{*the table-responsive class cuts off dropdown menus *}

{tr}Attached files{/tr}

{cycle values="odd,even" print=false advance=false} {section name=ix loop=$atts} {/section}
{tr}ID{/tr} {tr}Name{/tr} {tr}Comment{/tr} {tr}Uploaded{/tr} {tr}Size{/tr} {tr}Downloads{/tr}
{$atts[ix].attId} {$atts[ix].filename|iconify} {$atts[ix].filename} {$atts[ix].comment|escape} {if $atts[ix].user}{$atts[ix].user|userlink}{/if} {$atts[ix].created|tiki_short_datetime} {$atts[ix].filesize|kbsize} {$atts[ix].hits} {actions} {strip} {icon name='view' _menu_text='y' _menu_icon='y' alt="{tr}View{/tr}"} {icon name='floppy' _menu_text='y' _menu_icon='y' alt="{tr}Download{/tr}"} {if ($tiki_p_wiki_admin_attachments eq 'y' or ($user and ($atts[ix].user eq $user))) and $editable} {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/if} {/strip} {/actions}
{/if}{* Generate table if view ... attached files > 0 *} {* It is allow to attach files or current user have admin rights *} {if ($tiki_p_wiki_attach_files eq 'y' or $tiki_p_wiki_admin_attachments eq 'y') and (!isset($attach_box) or $attach_box ne 'n') and $editable}
{if $page_ref_id} {/if} {if !empty($smarty.request.no_bl)} {/if}
{/if}
{/if}