From 4220ed1fa41526c945d5259d80f5434e41b38bf1 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 1 Jun 2008 09:50:53 +0000 Subject: get the attachment browser working with libertymime plugins --- templates/edit_storage_list.tpl | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'templates/edit_storage_list.tpl') diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl index 1f398e1..cb09cf2 100644 --- a/templates/edit_storage_list.tpl +++ b/templates/edit_storage_list.tpl @@ -15,23 +15,28 @@ - {if $uploadTab } + {if $uploadTab} + {assign var=area value=upload_tab} {/if} - + {foreach from=$gContent->mStorage item=storage key=attachmentId name=atts} - {jspopup href=$storage.source_url title=$storage.title|default:$storage.filename notra=1 img=$storage.thumbnail_url.avatar} -
{$storage.filename} {$storage.file_size|display_bytes} - {if $smarty.foreach.atts.first} - {formhelp note="click to see large preview"} + {if $storage.is_mime} + {include file=$gContent->getMimeTemplate('inline',$storage.attachment_plugin_guid) area=$area thumbsize=small preferences=$gContent->mStoragePrefs.$attachmentId attachment=$storage} + {else} + {jspopup href=$storage.source_url title=$storage.title|default:$storage.filename notra=1 img=$storage.thumbnail_url.avatar} +
{$storage.filename} {$storage.file_size|display_bytes} + {if $smarty.foreach.atts.first} + {formhelp note="click to see large preview"} + {/if} {/if} @@ -55,7 +60,10 @@ {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} {else} - {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} + {if $storage.is_mime} + {biticon ipackage="icons" iname="document-open" iexplain="View"} + {/if} + {biticon ipackage="icons" iname="edit-delete" iexplain="Delete"} {/if} {/if} -- cgit v1.3