                 html = singleAttachmentEditable(ctx)
             else
                 html = singleAttachment(ctx)
+
             $el.html(html)
 
             if attachment.is_deprecated

        attachment = $scope.$eval($attrs.tgAttachment)
        render(attachment)

        ## On destroy
        $scope.$on "$destroy", ->
            $el.off()

    """) # TODO: i18n

    link = ($scope, $el, $attrs, $model) ->
        $ctrl = $el.controller()

        render = (attachment, isEditable=false) ->
            ctx = {
                id: attachment.id
