{* $Id$ *} {strip} {if $file.isgal eq 1} {if $file.perms.tiki_p_view_file_gallery eq 'y'} {self_link _icon_name='file-archive-open' _menu_text=$menu_text _menu_icon=$menu_icon galleryId=$file.id} {tr}Browse{/tr} {/self_link} {/if} {if $file.perms.tiki_p_create_file_galleries eq 'y'} {self_link _icon_name='edit' _menu_text=$menu_text _menu_icon=$menu_icon edit_mode=1 galleryId=$file.id} {tr}Properties{/tr} {/self_link} {/if} {if $file.perms.tiki_p_upload_files eq 'y' and ( $file.perms.tiki_p_admin_file_galleries eq 'y' or ($user and $file.user eq $user) or $file.public eq 'y' )} {/if} {if $file.perms.tiki_p_assign_perm_file_gallery eq 'y'}
{/if} {if $prefs.feature_webdav eq 'y'} {assign var=virtual_path value=$file.id|virtual_path:'filegal'} {icon name="file-archive-open"}{tr}Open as WebFolder{/tr} {/if} {if $file.perms.tiki_p_create_file_galleries eq 'y'} {self_link _icon_name='remove' _menu_text=$menu_text _menu_icon=$menu_icon removegal=$file.id _onclick="confirmPopup('{tr}Delete gallery?{/tr}', '{ticket mode=get}')"} {tr}Delete{/tr} {/self_link} {/if} {else} {if $prefs.javascript_enabled eq 'y'} {if $menu_text neq 'y'} {* This is needed for the 'Upload New Version' action to be correctly displayed when there is only an icon menu (or actions in a column of the table) *}