<!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><!--! FIXME: message_contains_tag -->
        <label>表示する履歴: <input type="text" size="10" name="from" value="${format_date(fromdate)}" /></label> <br />
        から <label><input type="text" size="3" name="daysback" value="$daysback" /> 日前まで</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) &lt;= (event.date - precisedate) &lt; precision">
            <dt class="${classes(event.kind, highlight=highlight)}">
              <a href="${event.render('url', context)}"><!--! FIXME: message_contains_tag -->
                <span class="time">${format_time(event.date, str('%H:%M'))}</span>
                <py:if test="event.author"><span class="author">${format_author(event.author)}</span> によって</py:if>
                ${event.render('title', context)}
              </a>
            </dt>
            <dd class="${classes(event.kind, highlight=highlight)}">
              ${event.render('description', context)}
            </dd>
          </py:for>
        </dl>
      </py:for>

      <div id="help">
        <!--! FIXME: message_contains_tag --> 
        <strong>Note:</strong> タイムラインについてのヘルプは <a href="${href.wiki('TracTimeline')}">TracTimeline</a>
        を参照して下さい。
      </div>

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