Ticket #6985: timeline_max_daysback.patch
| File timeline_max_daysback.patch, 1.0 KB (added by jonas, 8 months ago) |
|---|
-
trac/timeline/web_ui.py
53 53 """Default number of days displayed in the Timeline, in days. 54 54 (''since 0.9.'')""") 55 55 56 max_daysback = IntOption('timeline', 'max_daysback', 90, 57 """Maximum number of days (-1 for unlimited) displayable in the 58 Timeline. (''since 0.11'')""") 59 56 60 abbreviated_messages = BoolOption('timeline', 'abbreviated_messages', 57 61 'true', 58 62 """Whether wiki-formatted event messages should be truncated or not. … … 112 116 except ValueError: 113 117 daysback = self.default_daysback 114 118 daysback = max(0, daysback) 119 if self.max_daysback >= 0: 120 daysback = min(self.max_daysback, daysback) 115 121 116 122 data = {'fromdate': fromdate, 'daysback': daysback, 117 123 'today': format_date(today),
