diff options
| author | Lester Caine <lester@lsces.co.uk> | 2007-06-13 10:08:44 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2007-06-13 10:08:44 +0000 |
| commit | a1660a9589576dae2086fdf704c6b00187e820c3 (patch) | |
| tree | 94e5f31c40599c370f8722827f37eece2da957f6 /templates/edit_storage_list.tpl | |
| parent | ac6630f653284a638b7f0aed897763e360ecd165 (diff) | |
| download | liberty-a1660a9589576dae2086fdf704c6b00187e820c3.tar.gz liberty-a1660a9589576dae2086fdf704c6b00187e820c3.tar.bz2 liberty-a1660a9589576dae2086fdf704c6b00187e820c3.zip | |
Hide attachment delete button for mannaged content
Only works with treasury items at present need to amend bitfile storage module
Diffstat (limited to 'templates/edit_storage_list.tpl')
| -rw-r--r-- | templates/edit_storage_list.tpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl index c2adebe..15dbaa2 100644 --- a/templates/edit_storage_list.tpl +++ b/templates/edit_storage_list.tpl @@ -23,9 +23,9 @@ {/if} </td> <td> - Attachment ID: {$attachmentId} {if $gContent->mInfo.primary_attachment_id eq $attachmentId}(Primary){/if} <br /> - Filename: {$storage.filename} <br /> - Actions: + {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)} @@ -37,7 +37,7 @@ <a href="{$attachmentActionBaseURL}&content_id={$gContent->mContentId}&detachAttachment={$attachmentId}">{biticon ipackage=icons iname="edit-cut" iexplain="detach"}</a> {/if} {/if} - {if $gBitUser->isAdmin() || $storage.user_id == $gBitUser->mUserId} + {if ( $gBitUser->isAdmin() || $storage.user_id == $gBitUser->mUserId ) && !isset($storage.content_id) } {if $attachmentBrowser} <a href="javascript:ajax_updater('attbrowser', '{$attachmentActionBaseURL}', 'deleteAttachment={$attachmentId}');">{biticon ipackage="icons" iname="edit-delete" iexplain="delete"}</a> {elseif $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} |
