bloodhound-trac / trac / timeline / templates / timeline.html

Full commit
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns=""
  <xi:include href="layout.html" />

    <div id="content" class="timeline">


      <form id="prefs" method="get" action="">
       <div i18n:msg="">
        <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><br />
        <label>done by <input type="text" size="16" name="authors" value="$authors" /></label>
        <label py:for="filter in filters">
          <input type="checkbox" name="${}"
                 checked="${filter.enabled or None}"/> ${filter.label}
       <div class="buttons">
         <input type="submit" name="update" value="${_('Update')}" />

      <py:for each="day, events in groupby(events, key=lambda e: format_date(">
        <h2>${day}: ${_("Today") if day == today else _("Yesterday") if day == yesterday else None}</h2>
        <dl py:for="unread, events in groupby(events, key=lambda e: lastvisit and lastvisit &lt; e.dateuid)"
            class="${'unread' if unread else None}">
          <py:for each="event in events"
            py:with="highlight = precision and precisedate and timedelta(0) &lt;= ( - precisedate) &lt; precision">
            <dt class="${classes(event.kind, highlight=highlight, unread=unread)}">
              <a href="${event.render('url', context)}" py:choose="">
                <py:when test=""><i18n:msg params="time, title, author">
                  <span class="time">${format_time(, 'short')}</span> ${event.render('title', context)}
                  by <span class="author">${format_author(}</span>
                  <span class="time">${format_time(, 'short')}</span> ${event.render('title', context)}
            <dd class="${classes(event.kind, highlight=highlight)}">
              ${event.render('description', context)}

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