<div class="AttachmentText">
<div class="Filename"><a href="{xen:link attachments, $attachment}" target="_blank">{$attachment.filename}</a></div>
<xen:if is="{$isTemplate}">
<input type="button" value="{xen:phrase cancel}" class="button smallButton AttachmentCanceller" />
<span class="ProgressMeter"><span class="ProgressGraphic"> </span><span class="ProgressCounter">0%</span></span>
<xen:else />
<noscript>
<a href="{xen:link 'attachments/delete', $attachment}" target="_blank" class="button Smallbutton">{xen:phrase delete}</a>
</noscript>
<xen:if is="{$attachment.thumbnailUrl}">
<div class="label">{xen:phrase insert}:</div>
</xen:if>
<div class="controls">
<input type="button" value="{xen:phrase delete}" class="button smallButton AttachmentDeleter" data-href="{xen:link 'attachments/delete', $attachment}" />
<xen:if is="{$attachment.thumbnailUrl}">
<input onclick="$('li#attachment{$attachment.attachment_id}').attr('style','opacity:0.1');" type="button" name="thumb" value="{xen:phrase thumbnail}" class="button smallButton AttachmentInserter" />
<input onclick="$('li#attachment{$attachment.attachment_id}').attr('style','opacity:0.1');" type="button" name="image" value="{xen:phrase full_image}" class="button smallButton AttachmentInserter" />
</xen:if>
</div>
</xen:if>
</div>
</li>