Mercurial > genshi > mirror
comparison examples/trac/templates/timeline.cs @ 39:93b4dcbafd7b trunk
Copy Trac to main branch.
author | cmlenz |
---|---|
date | Mon, 03 Jul 2006 18:53:27 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
38:ee669cb9cccc | 39:93b4dcbafd7b |
---|---|
1 <?cs include "header.cs"?> | |
2 | |
3 <div id="ctxtnav" class="nav"></div> | |
4 | |
5 <div id="content" class="timeline"> | |
6 <h1>Timeline</h1> | |
7 | |
8 <form id="prefs" method="get" action="<?cs var:trac.href.timeline ?>"> | |
9 <div> | |
10 <label>View changes from <input type="text" size="10" name="from" value="<?cs | |
11 var:timeline.from ?>" /></label> and | |
12 <label><input type="text" size="3" name="daysback" value="<?cs | |
13 var:timeline.daysback ?>" /> days back</label>. | |
14 </div> | |
15 <fieldset><?cs | |
16 each:filter = timeline.filters ?> | |
17 <label><input type="checkbox" name="<?cs var:filter.name ?>"<?cs | |
18 if:filter.enabled ?> checked="checked"<?cs /if ?> /> <?cs | |
19 var:filter.label ?></label><?cs | |
20 /each ?> | |
21 </fieldset> | |
22 <div class="buttons"> | |
23 <input type="submit" name="update" value="Update" /> | |
24 </div> | |
25 </form><?cs | |
26 | |
27 def:day_separator(date) ?><?cs | |
28 if:date != current_date ?><?cs | |
29 if:current_date ?></dl><?cs /if ?><?cs | |
30 set:current_date = date ?> | |
31 <h2><?cs var:date ?>:</h2><dl><?cs | |
32 /if ?><?cs | |
33 /def ?><?cs | |
34 each:event = timeline.events ?><?cs | |
35 call:day_separator(event.date) ?><dt class="<?cs | |
36 var:event.kind ?>"><a href="<?cs var:event.href ?>"><span class="time"><?cs | |
37 var:event.time ?></span> <?cs var:event.title ?></a></dt><?cs | |
38 if:event.message ?><dd class="<?cs var:event.kind ?>"><?cs | |
39 var:event.message ?></dd><?cs | |
40 /if ?><?cs | |
41 /each ?><?cs | |
42 if:len(timeline.events) ?></dl><?cs /if ?> | |
43 | |
44 <div id="help"> | |
45 <hr /> | |
46 <strong>Note:</strong> See <a href="<?cs var:trac.href.wiki ?>/TracTimeline">TracTimeline</a> | |
47 for information about the timeline view. | |
48 </div> | |
49 | |
50 </div> | |
51 <?cs include "footer.cs"?> |