From 2818686d58f8b3ff782a2223d30cea2cf5b1e532 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Wed, 8 Oct 2008 06:50:45 +0000 Subject: make it possible to switch between display and download link. --- templates/mime_meta_inc.tpl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/mime_meta_inc.tpl b/templates/mime_meta_inc.tpl index cca3e84..4eb8edc 100644 --- a/templates/mime_meta_inc.tpl +++ b/templates/mime_meta_inc.tpl @@ -6,11 +6,18 @@ {/forminput} -{if $attachment.download_url} +{if $display && $attachment.display_url} +
+ {formlabel label="View" for=""} + {forminput} + {$attachment.filename} + {/forminput} +
+{elseif $attachment.download_url}
{formlabel label="Download" for=""} {forminput} - {$attachment.filename} ({$attachment.file_size|display_bytes}) + {$attachment.filename} ({$attachment.mime_type} • {$attachment.file_size|display_bytes}) {/forminput}
{/if} @@ -22,5 +29,5 @@ {/forminput} -{attachhelp legend=1 hash=$attachment} +{attachhelp legend=1 nohelp=$nohelp hash=$attachment} {/strip} -- cgit v1.3