From 550bd1ca526bec8747df6e6fe3e318fbcd8207dd Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 26 Nov 2006 12:51:58 +0000 Subject: move getAttachmentList function to LibertyAttachable, where it belongs and add a basic page to list all available attachments - only admin may view attachments from other users as well. - functionally still somewhat lacking... --- templates/attachments.tpl | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 templates/attachments.tpl (limited to 'templates/attachments.tpl') diff --git a/templates/attachments.tpl b/templates/attachments.tpl new file mode 100644 index 0000000..2484865 --- /dev/null +++ b/templates/attachments.tpl @@ -0,0 +1,60 @@ +{strip} +
+
+

{tr}Liberty Attachments{/tr}

+
+ +
+ {if $gBitUser->isAdmin()} + {form legend="Attachment Filter"} + {formfeedback hash=$feedback} + +
+ {formlabel label="User" for=""} + {forminput} + + {formhelp note="Enter the login name of a given user."} + {/forminput} +
+ +
+ +
+ {/form} + {/if} + + + + + + + + + {foreach from=$attachments item=attachment} + + + + + + {foreachelse} + + {/foreach} +
{tr}Liberty Attachments{/tr}
{tr}Details{/tr}{tr}Actions{/tr}
+ + {$attachment.filename} + + + {tr}Owner{/tr}: {displayname hash=$attachment} +
+ {tr}Size{/tr}: {$attachment.file_size|kbsize} +
+ {tr}Wiki plugin link{/tr}: {$attachment.wiki_plugin_link} +
+
+ {tr}No records found{/tr} +
+ + {pagination login=$smarty.request.login} +
+
+{/strip} -- cgit v1.3