${tag_("Add Attachment to %(parent)s", parent=tag.a(name_of(parent), href=url_of(parent)))}
# elif mode == 'delete':${name_of(parent)}: ${attachment.filename}
${_("Are you sure you want to delete this attachment?")}
${_("This is an irreversible operation.")}
${name_of(parent)}
# with # set context = context.child(parent) # set alist = attachments # include 'list_of_attachments.html' # endwith # else: ## 'render' mode${name_of(parent)}: ${attachment.filename}
# with # set file = attachment.filename # set size ${ pretty_size(attachment.size)} # endset # set author = authorinfo(attachment.author) # set pdate = pretty_dateinfo(attachment.date) # trans file, size, author, pdate File ${file}, ${size} (added by ${author}, ${pdate}) # endtrans # endwith |
---|
# include 'preview_file.html'
# endif
# if attachment and 'ATTACHMENT_DELETE' in perm(attachment.resource):
# endif
# endif