~ubuntu-branches/ubuntu/precise/trac/precise

« back to all changes in this revision

Viewing changes to trac/timeline/templates/timeline.html

  • Committer: Bazaar Package Importer
  • Author(s): Luis Matos
  • Date: 2008-07-13 23:46:20 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080713234620-13ynpdpkbaymfg1z
Tags: 0.11-2
* Re-added python-setup-tools to build dependences. Closes: #490320 #468705
* New upstream release Closes: 489727
* Added sugestion for other vcs support available: git bazaar mercurial 
* Added spamfilter plugin to sugests
* Moved packaging from python-support to python-central
* Added an entry to the NEWS about the cgi Closes: #490275
* Updated 10_remove_trac_suffix_from_title patch to be used in 0.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html
 
2
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml"
 
5
      xmlns:py="http://genshi.edgewall.org/"
 
6
      xmlns:xi="http://www.w3.org/2001/XInclude">
 
7
  <xi:include href="layout.html" />
 
8
  <xi:include href="macros.html" />
 
9
  <head>
 
10
    <title>Timeline</title>
 
11
  </head>
 
12
 
 
13
  <body>
 
14
    <div id="content" class="timeline">
 
15
 
 
16
      <h1>Timeline</h1>
 
17
 
 
18
      <form id="prefs" method="get" action="">
 
19
       <div>
 
20
        <label>View changes from <input type="text" size="10" name="from" value="${format_date(fromdate)}" /></label> <br />
 
21
        and <label><input type="text" size="3" name="daysback" value="$daysback" /> days back</label>.
 
22
       </div>
 
23
       <fieldset>
 
24
        <label py:for="filter in filters">
 
25
          <input type="checkbox" name="${filter.name}"
 
26
                 checked="${filter.enabled or None}"/> ${filter.label}
 
27
        </label>
 
28
       </fieldset>
 
29
       <div class="buttons">
 
30
        <input type="submit" name="update" value="Update" />
 
31
       </div>
 
32
      </form>
 
33
 
 
34
      <py:for each="day, events in groupby(events, key=lambda e: format_date(e.date))">
 
35
        <h2>${day}: ${day == today and 'Today' or day == yesterday and 'Yesterday' or None}</h2>
 
36
        <dl>
 
37
          <py:for each="event in events"
 
38
            py:with="highlight = precision and precisedate and timedelta(0) &lt;= (event.date - precisedate) &lt; precision">
 
39
            <dt class="${classes(event.kind, highlight=highlight)}">
 
40
              <a href="${event.render('url', context)}">
 
41
                <span class="time">${format_time(event.date, str('%H:%M'))}</span> ${event.render('title', context)}
 
42
                <py:if test="event.author">by <span class="author">${format_author(event.author)}</span></py:if>
 
43
              </a>
 
44
            </dt>
 
45
            <dd class="${classes(event.kind, highlight=highlight)}">
 
46
              ${event.render('description', context)}
 
47
            </dd>
 
48
          </py:for>
 
49
        </dl>
 
50
      </py:for>
 
51
 
 
52
      <div id="help">
 
53
        <strong>Note:</strong> See <a href="${href.wiki('TracTimeline')}">TracTimeline</a>
 
54
        for information about the timeline view.
 
55
      </div>
 
56
 
 
57
    </div>
 
58
  </body>
 
59
</html>