summaryrefslogtreecommitdiff
path: root/templates/edit_storage_list.tpl
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-09-15 06:18:05 +0000
committerChristian Fowler <spider@viovio.com>2007-09-15 06:18:05 +0000
commit43b2a2ad1aa4377db292e13aecc83943d6900338 (patch)
tree987a71c8f812c6414b1fbafcd447f90139ecc970 /templates/edit_storage_list.tpl
parent1cb7d9030b2fad2f80ac3394cb01872d2f337163 (diff)
downloadliberty-43b2a2ad1aa4377db292e13aecc83943d6900338.tar.gz
liberty-43b2a2ad1aa4377db292e13aecc83943d6900338.tar.bz2
liberty-43b2a2ad1aa4377db292e13aecc83943d6900338.zip
SCHEMA CHANGE: Major overhaul to liberty attachable by removing attachment_map and only allow attachments to be wired to a single piece of content. removed attachment_map, single and multiple attachments are working, ajax code was removed, and should be put in a separate library/class to handle what to do with 'floating' files waiting for a store
Diffstat (limited to 'templates/edit_storage_list.tpl')
-rw-r--r--templates/edit_storage_list.tpl11
1 files changed, 0 insertions, 11 deletions
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl
index 357d808..449cc39 100644
--- a/templates/edit_storage_list.tpl
+++ b/templates/edit_storage_list.tpl
@@ -26,17 +26,6 @@
{tr}Attachment ID{/tr}: {$attachmentId} {if $gContent->mInfo.primary_attachment_id eq $attachmentId}({tr}Primary{/tr}){/if} <br />
{tr}Filename{/tr}: {$storage.filename} <br />
{tr}Actions{/tr}:
- {if ($gBitUser->isAdmin() || $gBitUser->hasPermission( 'p_liberty_detach_attachment' ) || $storage.user_id == $gBitUser->mUserId) && !empty($gContent->mContentId)}
- {if $attachmentBrowser}
- {if in_array($gContent->mContentId, $storage.attached_to)}
- <a href="javascript:ajax_updater('attbrowser', '{$attachmentActionBaseURL}', 'content_id={$gContent->mContentId}&amp;detachAttachment={$attachmentId}')">{biticon ipackage=icons iname="edit-cut" iexplain="detach"}</a>
- {/if}
- {elseif $libertyUploader or $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'}
- <a href="javascript:ajax_updater('edit_storage_list_div', '{$attachmentActionBaseURL}', 'content_id={$gContent->mContentId}&amp;detachAttachment={$attachmentId}');">{biticon ipackage=icons iname="edit-cut" iexplain="detach"}</a>
- {else}
- <a href="{$attachmentActionBaseURL}&amp;content_id={$gContent->mContentId}&amp;detachAttachment={$attachmentId}">{biticon ipackage=icons iname="edit-cut" iexplain="detach"}</a>
- {/if}
- {/if}
{if $gBitUser->isAdmin() || ($storage.user_id == $gBitUser->mUserId && $gBitUser->hasPermission('p_liberty_delete_attachments') ) }
{if $attachmentBrowser}
<a href="javascript:ajax_updater('attbrowser', '{$attachmentActionBaseURL}', 'deleteAttachment={$attachmentId}');">{biticon ipackage="icons" iname="edit-delete" iexplain="delete"}</a>