diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-01-11 15:42:55 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-01-11 15:42:55 +0000 |
| commit | 2484e4ca75b94faf00659415bbc518768935c111 (patch) | |
| tree | 2ea0e48c7ca2b399c77bb8503e59169651f583ed /templates/attachments.tpl | |
| parent | 4b39c095b0d1e16da44b5a4173615b85488ab0ec (diff) | |
| download | liberty-2484e4ca75b94faf00659415bbc518768935c111.tar.gz liberty-2484e4ca75b94faf00659415bbc518768935c111.tar.bz2 liberty-2484e4ca75b94faf00659415bbc518768935c111.zip | |
add option to scan for usage of a given attachment id in content
Diffstat (limited to 'templates/attachments.tpl')
| -rw-r--r-- | templates/attachments.tpl | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/templates/attachments.tpl b/templates/attachments.tpl index 7bbe745..e4e3db8 100644 --- a/templates/attachments.tpl +++ b/templates/attachments.tpl @@ -23,6 +23,26 @@ {/form} {/if} + {formfeedback warning="Checking for attachment usage in content can take a while depending on the amount of content on this site - if there is a lot of content, it might not be possible at all."} + + {if $smarty.request.attachment_id} + <ul class="data" id="usage"> + <li>{tr}This attachment is used in the following content{/tr}: + <ul> + {foreach from=$attachmentUsage item=content} + <li class="{cycle values="odd,even"} item"> + {$content.display_link} • {tr}Created by{/tr}: {displayname hash=$content} [{$content.created|bit_short_datetime}] + </li> + {foreachelse} + <li class="norecords"> + {tr}No records found{/tr} + </li> + {/foreach} + </ul> + </li> + </ul> + {/if} + <table class="data"> <caption>{tr}Liberty Attachments{/tr}</caption> <tr> @@ -37,6 +57,7 @@ <img src="{$attachment.thumbnail_url.small}" alt="{$attachment.filename}" title="{tr}Attachment Thumbnail{/tr}" /> </a> </td> + <td> {tr}Owner{/tr}: {displayname hash=$attachment} <br /> @@ -44,7 +65,9 @@ <br /> {tr}Wiki plugin link{/tr}: {$attachment.wiki_plugin_link} </td> - <td> + + <td class="actionicon"> + {smartlink ititle="Check Attachment Usage" ibiticon="icons/format-justify-fill" attachment_id=$attachment.attachment_id} </td> </tr> {foreachelse} |
