# set preview_mode = 'preview' in req.args
# set can_append = 'TICKET_APPEND' in perm(ticket.resource)
# set can_create = ('TICKET_CREATE' in perm(ticket.resource) and
not ticket.exists)
# set can_modify = 'TICKET_CHGPROP' in perm(ticket.resource)
# set can_edit = 'TICKET_EDIT_DESCRIPTION' in perm(ticket.resource)
# set only_for_admin = 'TICKET_ADMIN' in perm(ticket.resource)
# set has_property_editor = (
not version and version != 0 and not cnum_edit and
(can_append or can_modify or can_edit or can_create))
# if (ticket.exists or preview_mode) and has_property_editor:
# endif
# if not ticket.exists:
${_("Create New Ticket")}
# if preview_mode and ticket.type:
(${ticket.type})
# endif
# endif
# if ticket.exists:
# with preview_mode = change_preview.fields
# include 'ticket_box.html'
# endwith
## # Do not show attachments for old versions of this ticket
## # or for new tickets.
# if not version and version != 0 and ticket.exists:
# with alist = attachments, foldable = True
# include 'list_of_attachments.html'
# endwith
# endif
${_("Change History")}
(${len(changes)})
# for change in changes:
# set latest = change['comment_history'] | max
# set change_date = change['comment_history'][latest]['date']
# include 'ticket_change.html'
# endfor
# endif
## end of the section we don't show for initial new tickets
# if has_property_editor:
# endif
# if not ticket.exists:
# with hide = not preview_mode, preview_mode = preview_mode
# include 'ticket_box.html'
# endwith
# endif
# call(note, page) jmacros.wikihelp('TracTickets'):
# trans note, page
${note} See ${page} for help on using tickets.
# endtrans
# endcall
${ super() }
# endblock content