{# Copyright (C) 2010-2023 Edgewall Software This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at https://trac.edgewall.org/wiki/TracLicense. This software consists of voluntary contributions made by many individuals. For the exact contribution history, see the revision history and logs, available at https://trac.edgewall.org/. #} # extends 'layout.html' # block title # if action == 'delete': # trans id = ticket.id Delete Ticket #${id} # endtrans # else: # trans num = cnum, id = ticket.id Delete comment ${num} on Ticket #${id} # endtrans # endif ${ super() } # endblock title # block content
# if action == 'delete':

# set ticket_link ${ _("Ticket #%(id)s", id=ticket.id)} # endset # trans ticket = ticket_link Delete ${ticket} # endtrans (${ticket.status}{% if ticket.type %} ${ticket.type}{% endif %}{% if ticket.resolution %}: ${ticket.resolution}{% endif %})

# with # set can_append = false # set preview_mode = false # include 'ticket_box.html' # endwith
${jmacros.form_token_input()}

${_("Are you sure you want to delete this ticket?")} # with # set comments = changes|selectattr('cnum')|list|count # set attachments = changes|rejectattr('cnum')|list|count # trans comments, attachments (comments: ${comments}, attachments: ${attachments}) # endtrans # endwith

# if attachments:

${_("The following attachments will also be deleted:")}

# endif

${_("This is an irreversible operation.")}

# else:

${_("Delete comment %(num)s on Ticket #%(id)s", num=cnum, id=ticket.id)}

# with hide_buttons = true # include 'ticket_change.html' # endwith
${jmacros.form_token_input()}

${_("Are you sure you want to delete this ticket comment?")}

${_("This is an irreversible operation.")}

# endif
${ super() } # endblock content