{# Copyright (C) 2006-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 'admin.html' # block admintitle ${_("Milestones")} # endblock admintitle # block head ${ super() } # endblock head # block adminpanel # set perm = req.perm('admin', 'ticket/milestones') # set can_create = 'MILESTONE_CREATE' in perm # set can_modify = 'MILESTONE_MODIFY' in perm # set can_remove = 'MILESTONE_DELETE' in perm # set can_config = 'TICKET_ADMIN' in perm # set can_view_tickets = 'TICKET_VIEW' in perm

# set nb_milestones # if view == 'list': (${len(milestones)}) # endif # endset # trans nb_milestones Manage Milestones ${nb_milestones} # endtrans

# if view == 'detail': # include 'milestone_edit_form.html' # else: # if can_create:
${jmacros.form_token_input()}
${_("Add Milestone:")}
# endif # if milestones:
${jmacros.form_token_input()} # if can_remove: # endif # for milestone in milestones: # if can_remove: # endif # set ticket_count = num_tickets(milestone) # endfor
${_("Name")}${_("Due")}${_("Completed")} ${_("Default")} ${_("Retarget")} ${_("Tickets")}
${milestone.name} ${format_datetime(milestone.due) if milestone.due} ${format_datetime(milestone.completed) if milestone.completed} # if ticket_count == 0 or not can_view_tickets: ${ticket_count} # else: ${ticket_count} # endif
# if can_config: # endif # if can_remove: # endif # if can_config: # endif

# trans You can remove all items from this list to completely hide this field from the user interface. # endtrans

# else:

# trans As long as you don't add any items to the list, this field will remain completely hidden from the user interface. # endtrans

# endif # endif # call(note, page) jmacros.wikihelp('TracRoadmap'): # trans note, page ${note} See ${page} for help on using ticket milestones. # endtrans # endcall
# endblock adminpanel