<!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="macros.html" />
<xi:include href="layout.html" />
<head><title>All Project Timeline</title></head>
<body>
<div id="content" class="timeline">
<h1>All Project Timeline</h1>
${timeline.filters}
<form id="prefs" method="get">
 <div>
  <label>View changes from
      <input type="text" disabled="true" size="10" name="from" value="${format_date(timeline['from'])}" />
  </label> and 
  <label>
     <input type="text" disabled="true" size="3" name="daysback" value="${timeline['daysback']}" /> days back
  </label>.
 </div>
 <fieldset>
 <py:for each="filter in filters">
   <label><input type="checkbox" name="${filter.name}" checked="${filter.enabled or None}" />
     ${filter.label}</label>
 </py:for>
 </fieldset>
 <div class="buttons">
  <input type="submit" name="update" value="${_('Update')}" />
 </div>
</form>
      <py:for each="day, events in groupby(timeline.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) &lt;= (event.date - precisedate) &lt; precision">
            <dt class="${classes(event.kind, highlight=highlight)}">
              <a href="${event.href}"><!--! FIXME: message_contains_tag -->
                <span class="time">${format_time(event.date, str('%H:%M'))}</span>
                ${event.title}
              </a>
            </dt>
            <py:if test="event.message">
            <dd class="${classes(event.kind, highlight=highlight)}">
             ${event.message}
            </dd>
            </py:if>
          </py:for>
        </dl>
      </py:for>

<div id="help">
 <hr />
 <strong>Note:</strong> See <a href="${href.wiki('TracTimeline')}">TracTimeline</a>  
for information about the timeline view.
</div>

</div>
</body>
</html>
