From befcee3f0e079e157e2c8dc2c9592d5c479fc5a6 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Tue, 23 Dec 2008 15:13:54 +0000 Subject: 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. --- templates/mime/audio/view.tpl | 18 +----------------- templates/mime/default/view.tpl | 2 +- templates/mime/flv/view.tpl | 26 +------------------------- 3 files changed, 3 insertions(+), 43 deletions(-) (limited to 'templates/mime') 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 @@ {/if} -{if $attachment.download_url} -
- {formlabel label="Filename" for=""} - {forminput} - {$attachment.filename|escape} ({$attachment.mime_type}) - {/forminput} -
- -
- {formlabel label="Filesize" for=""} - {forminput} - {$attachment.file_size|display_bytes} - {/forminput} -
-{/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} {/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} -
- {formlabel label="Uploaded by" for=""} - {forminput} - {displayname user_id=$attachment.user_id} - {/forminput} -
- {if $attachment.meta.duration}
{formlabel label="Duration" for=""} @@ -49,22 +42,5 @@
{/if} -{if $attachment.download_url} -
- {formlabel label="Filename" for=""} - {forminput} - {$attachment.filename|escape} -   ({$attachment.mime_type}) - {/forminput} -
- -
- {formlabel label="Filesize" for=""} - {forminput} - {$attachment.file_size|display_bytes} - {/forminput} -
-{/if} - -{attachhelp legend=1 hash=$attachment} +{include file=bitpackage:liberty/mime_meta_inc.tpl} {/strip} -- cgit v1.3