tiki-file_archives.tpl 1.28 KB
Newer Older
1 2
{* $Id$ *}

3
{title}
4
	{tr}File Archive:{/tr} {if empty($file_info.name)}{$file_info.filename}{else}{$file_info.name}{/if}
5
{/title}
6

7
<div class="t_navbar margin-bottom-md">
8
	{if $tiki_p_list_file_galleries eq 'y' or ( ! isset($tiki_p_list_file_galleries) and $tiki_p_view_file_gallery eq 'y' )}
9
		{button href="tiki-list_file_gallery.php" class="btn btn-default" _text="{tr}List Galleries{/tr}"}
10
	{/if}
11

12
	{assign var=thisgall value=$gal_info.galleryId}
13
	{button href="tiki-list_file_gallery.php?galleryId=$thisgall" class="btn btn-default" _text="{tr}List Gallery{/tr}"}
14

15
	{if $tiki_p_admin_file_galleries eq 'y' or $user eq $gal_info.user}
16
		{button href="tiki-list_file_gallery.php?edit_mode=1&amp;galleryId=$thisgall" class="btn btn-default" _text="{tr}Edit Gallery{/tr}"}
17
	{/if}
18

19 20
	{if $tiki_p_admin_file_galleries eq 'y' or $user eq $gal_info.user or $gal_info.public eq 'y'}
		{if $tiki_p_upload_files eq 'y'}
21
			{button href="tiki-upload_file.php?galleryId=$thisgall" class="btn btn-default" _text="{tr}Upload File{/tr}"}
22 23
		{/if}
		{if $prefs.feature_file_galleries_batch eq "y" and $tiki_p_batch_upload_file_dir eq 'y'}
24
			{button href="tiki-batch_upload_files.php?galleryId=$thisgall" class="btn btn-default" _text="{tr}Directory Batch{/tr}"}
25 26 27
		{/if}
	{/if}
</div>
28

29
{include file='list_file_gallery.tpl'}