File: /home/mmickelson/theflexguy_com_trac_trac/trac/timeline/templates/timeline.html
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="layout.html" />
<xi:include href="macros.html" />
<head>
<title>Timeline</title>
</head>
<body>
<div id="content" class="timeline">
<h1>Timeline</h1>
<form id="prefs" method="get" action="">
<div>
<label>View changes from <input type="text" size="10" name="from" value="${format_date(fromdate)}" /></label> <br />
and <label><input type="text" size="3" name="daysback" value="$daysback" /> days back</label>.
</div>
<fieldset>
<label py:for="filter in filters">
<input type="checkbox" name="${filter.name}"
checked="${filter.enabled or None}"/> ${filter.label}
</label>
</fieldset>
<div class="buttons">
<input type="submit" name="update" value="Update" />
</div>
</form>
<py:for each="day, events in groupby(events, key=lambda e: format_date(e.date))">
<h2>${day}: ${day == today and 'Today' or day == yesterday and 'Yesterday' or None}</h2>
<dl>
<py:for each="event in events"
py:with="highlight = precision and precisedate and timedelta(0) <= (event.date - precisedate) < precision">
<dt class="${classes(event.kind, highlight=highlight)}">
<a href="${event.render('url', context)}">
<span class="time">${format_time(event.date, str('%H:%M'))}</span> ${event.render('title', context)}
<py:if test="event.author">by <span class="author">${format_author(event.author)}</span></py:if>
</a>
</dt>
<dd class="${classes(event.kind, highlight=highlight)}">
${event.render('description', context)}
</dd>
</py:for>
</dl>
</py:for>
<div id="help">
<strong>Note:</strong> See <a href="${href.wiki('TracTimeline')}">TracTimeline</a>
for information about the timeline view.
</div>
</div>
</body>
</html>