|Version 2 (modified by falkb, 20 months ago) (diff)|
Chart Of Upcoming Milestones Macro
It is very useful to get a short survey about all milestone dates in Trac instances with many milestones, especially because of many projects. This macro automatically generates such chart.
You may put in a news box. Overdue dates can be displayed colored. The milestone chart is sorted by date. You can set a filter which milestones are displayed by setting an SQL-like pattern.
If you have any issues, create a new ticket.
Download the zipped source from here.
Just copy the .py file in the plugin directory of Trac.
You can see here how to use this macro:
[[UpcomingMilestonesChart(%-%,10,Next Milestone Dates,yellow)]]
The example sets
- an SQL filter pattern %-% means here only to display milestones containing a minus in the middle of the name
- a maximum of 10 milestones
- a title
- the color of overdue milestones
If you put the macro call in a news box or HTML div container, it is displayed then as
based on these milestones: