Menu

Commit [r4647]  Maximize  Restore  History

Add a `timeline:` TracLinks, for creating links to the Timeline from within wiki text.

The format to use for the link is ISO:8601. If the timezone is not specified, the timezone is assumed to be UTC. At least the year and the month has to be specified. If the hour is specified, the events within that hour in the timeline will be highlighted, same for the minutes and the seconds.

Examples:
- timeline:2007 - links to the 1st of January, 2007
- timeline:2007-02 - links ot the 1s of February, 2007
- timeline:2007-01-27 - links to the date of this commit
- timeline:2007-01-27T21 - same, but with the precision set to `'hours'` (all events between 21 and 22 hours UTC will be highlighted)
- timeline:2007-01-27T20:23 - should highlight [4646]...

Implements partially #975.

(merged from the source:sandbox/timeline-link-resolver-tmp branch, plus some fixes)

cboos 2007-01-27

changed /trunk/htdocs/css/timeline.css
changed /trunk/templates/timeline.html
changed /trunk/trac/timeline/web_ui.py
changed /trunk/trac/util/datefmt.py
changed /trunk/trac/web/href.py
/trunk/htdocs/css/timeline.css Diff Switch to side-by-side view
Loading...
/trunk/templates/timeline.html Diff Switch to side-by-side view
Loading...
/trunk/trac/timeline/web_ui.py Diff Switch to side-by-side view
Loading...
/trunk/trac/util/datefmt.py Diff Switch to side-by-side view
Loading...
/trunk/trac/web/href.py Diff Switch to side-by-side view
Loading...
Auth0 Logo