{# 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/. #} ## Display groups of tickets in a progress bar. {# Arguments: - stats: an instance of trac.ticket.roadmap.TicketGroupStats - interval_hrefs: link associated to each interval in stats.intervals - percent=None: show that value as percentage, instead of stats.done_percent - legend=True: show a legend of label and count for each interval - style=None: explicit styling for the table.progress - stats_href=None: link associated to the total #} # with # set percent = none if percent is undefined else percent # set legend = true if legend is undefined else legend # set style = none if style is undefined else style # set stats_href = none if stats_href is undefined else stats_href
# endfor |
${ '%d%%' % stats.done_percent if percent is none else percent}
# if legend:${_("Total number of %(unit)s: %(count)s", unit=stats.unit, count=stats.count)} # for interval in stats.intervals: - ${_("%(title)s: %(count)s", title=interval.title, count=interval.count)} # endfor
# endif # endwith