diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-10-08 06:50:45 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-10-08 06:50:45 +0000 |
| commit | 2818686d58f8b3ff782a2223d30cea2cf5b1e532 (patch) | |
| tree | 32b16a93f7e430c982eb9e92e777d6414b5c3821 /templates/mime_meta_inc.tpl | |
| parent | 2aebcd908de02d33d63220fb53c6b1c5d8465073 (diff) | |
| download | liberty-2818686d58f8b3ff782a2223d30cea2cf5b1e532.tar.gz liberty-2818686d58f8b3ff782a2223d30cea2cf5b1e532.tar.bz2 liberty-2818686d58f8b3ff782a2223d30cea2cf5b1e532.zip | |
make it possible to switch between display and download link.
Diffstat (limited to 'templates/mime_meta_inc.tpl')
| -rw-r--r-- | templates/mime_meta_inc.tpl | 13 |
1 files changed, 10 insertions, 3 deletions
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} </div> -{if $attachment.download_url} +{if $display && $attachment.display_url} + <div class="row"> + {formlabel label="View" for=""} + {forminput} + <a href="{$attachment.display_url}">{$attachment.filename}</a> + {/forminput} + </div> +{elseif $attachment.download_url} <div class="row"> {formlabel label="Download" for=""} {forminput} - <a href="{$attachment.download_url}">{$attachment.filename}</a> <small>({$attachment.file_size|display_bytes})</small> + <a href="{$attachment.download_url}">{$attachment.filename}</a> <small>({$attachment.mime_type} • {$attachment.file_size|display_bytes})</small> {/forminput} </div> {/if} @@ -22,5 +29,5 @@ {/forminput} </div> -{attachhelp legend=1 hash=$attachment} +{attachhelp legend=1 nohelp=$nohelp hash=$attachment} {/strip} |
