diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-12-23 15:13:54 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-12-23 15:13:54 +0000 |
| commit | befcee3f0e079e157e2c8dc2c9592d5c479fc5a6 (patch) | |
| tree | 95f6280ab988735533b925886f1afbb5eb87e09e /templates/mime | |
| parent | e86e90008136df4ee9b241459ac721fd57ceae50 (diff) | |
| download | liberty-befcee3f0e079e157e2c8dc2c9592d5c479fc5a6.tar.gz liberty-befcee3f0e079e157e2c8dc2c9592d5c479fc5a6.tar.bz2 liberty-befcee3f0e079e157e2c8dc2c9592d5c479fc5a6.zip | |
make better use of liberty/templates/mime_meta_inc.tpl by other templates. we'll have to make some / all of the displayed information optional at some point.
Diffstat (limited to 'templates/mime')
| -rw-r--r-- | templates/mime/audio/view.tpl | 18 | ||||
| -rw-r--r-- | templates/mime/default/view.tpl | 2 | ||||
| -rw-r--r-- | templates/mime/flv/view.tpl | 26 |
3 files changed, 3 insertions, 43 deletions
diff --git a/templates/mime/audio/view.tpl b/templates/mime/audio/view.tpl index 04260d0..5821a72 100644 --- a/templates/mime/audio/view.tpl +++ b/templates/mime/audio/view.tpl @@ -59,21 +59,5 @@ </div> {/if} -{if $attachment.download_url} - <div class="row"> - {formlabel label="Filename" for=""} - {forminput} - <a href="{$attachment.download_url}">{$attachment.filename|escape}</a> <small>({$attachment.mime_type})</small> - {/forminput} - </div> - - <div class="row"> - {formlabel label="Filesize" for=""} - {forminput} - {$attachment.file_size|display_bytes} - {/forminput} - </div> -{/if} - -{attachhelp legend=1 hash=$attachment} +{include file=bitpackage:liberty/mime_meta_inc.tpl} {/strip} diff --git a/templates/mime/default/view.tpl b/templates/mime/default/view.tpl index 0b1e9c0..077372a 100644 --- a/templates/mime/default/view.tpl +++ b/templates/mime/default/view.tpl @@ -16,5 +16,5 @@ {/if} </div> {/if} -{/strip} {include file="bitpackage:liberty/mime_meta_inc.tpl"} +{/strip} diff --git a/templates/mime/flv/view.tpl b/templates/mime/flv/view.tpl index c050708..1a0682c 100644 --- a/templates/mime/flv/view.tpl +++ b/templates/mime/flv/view.tpl @@ -33,13 +33,6 @@ {formfeedback error="{tr}The Video could not be processed. You can upload a different version of the film or simply leave as is.{/tr}"} {/if} -<div class="row"> - {formlabel label="Uploaded by" for=""} - {forminput} - {displayname user_id=$attachment.user_id} - {/forminput} -</div> - {if $attachment.meta.duration} <div class="row"> {formlabel label="Duration" for=""} @@ -49,22 +42,5 @@ </div> {/if} -{if $attachment.download_url} - <div class="row"> - {formlabel label="Filename" for=""} - {forminput} - <a href="{$attachment.download_url}">{$attachment.filename|escape}</a> - <small>({$attachment.mime_type})</small> - {/forminput} - </div> - - <div class="row"> - {formlabel label="Filesize" for=""} - {forminput} - {$attachment.file_size|display_bytes} - {/forminput} - </div> -{/if} - -{attachhelp legend=1 hash=$attachment} +{include file=bitpackage:liberty/mime_meta_inc.tpl} {/strip} |
