39
|
1 <?cs include "header.cs"?>
|
|
2 <?cs include "macros.cs"?>
|
|
3
|
|
4 <div id="ctxtnav" class="nav">
|
|
5 <ul>
|
|
6 <li class="last">
|
|
7 <a href="<?cs var:log.browser_href ?>">View Latest Revision</a>
|
|
8 </li><?cs
|
|
9 if:len(chrome.links.prev) ?>
|
|
10 <li class="first<?cs if:!len(chrome.links.next) ?> last<?cs /if ?>">
|
|
11 ← <a href="<?cs var:chrome.links.prev.0.href ?>" title="<?cs
|
|
12 var:chrome.links.prev.0.title ?>">Newer Revisions</a>
|
|
13 </li><?cs
|
|
14 /if ?><?cs
|
|
15 if:len(chrome.links.next) ?>
|
|
16 <li class="<?cs if:!len(chrome.links.prev) ?>first <?cs /if ?>last">
|
|
17 <a href="<?cs var:chrome.links.next.0.href ?>" title="<?cs
|
|
18 var:chrome.links.next.0.title ?>">Older Revisions</a> →
|
|
19 </li><?cs
|
|
20 /if ?>
|
|
21 </ul>
|
|
22 </div>
|
|
23
|
|
24
|
|
25 <div id="content" class="log">
|
|
26 <h1><?cs call:browser_path_links(log.path, log) ?></h1>
|
|
27 <form id="prefs" action="<?cs var:browser_current_href ?>" method="get">
|
|
28 <div>
|
|
29 <input type="hidden" name="action" value="<?cs var:log.mode ?>" />
|
|
30 <label>View log starting at <input type="text" id="rev" name="rev" value="<?cs
|
|
31 var:log.items.0.rev ?>" size="5" /></label>
|
|
32 <label>and back to <input type="text" id="stop_rev" name="stop_rev" value="<?cs
|
|
33 var:log.stop_rev ?>" size="5" /></label>
|
|
34 <br />
|
|
35 <div class="choice">
|
|
36 <fieldset>
|
|
37 <legend>Mode:</legend>
|
|
38 <label for="stop_on_copy">
|
|
39 <input type="radio" id="stop_on_copy" name="mode" value="stop_on_copy" <?cs
|
|
40 if:log.mode != "follow_copy" || log.mode != "path_history" ?> checked="checked" <?cs
|
|
41 /if ?> />
|
|
42 Stop on copy
|
|
43 </label>
|
|
44 <label for="follow_copy">
|
|
45 <input type="radio" id="follow_copy" name="mode" value="follow_copy" <?cs
|
|
46 if:log.mode == "follow_copy" ?> checked="checked" <?cs /if ?> />
|
|
47 Follow copies
|
|
48 </label>
|
|
49 <label for="path_history">
|
|
50 <input type="radio" id="path_history" name="mode" value="path_history" <?cs
|
|
51 if:log.mode == "path_history" ?> checked="checked" <?cs /if ?> />
|
|
52 Show only adds, moves and deletes
|
|
53 </label>
|
|
54 </fieldset>
|
|
55 </div>
|
|
56 <label><input type="checkbox" name="verbose" <?cs
|
|
57 if:log.verbose ?> checked="checked" <?cs
|
|
58 /if ?> /> Show full log messages</label>
|
|
59 </div>
|
|
60 <div class="buttons">
|
|
61 <input type="submit" value="Update"
|
|
62 title="Warning: by updating, you will clear the page history" />
|
|
63 </div>
|
|
64 </form>
|
|
65
|
|
66 <div class="diff">
|
|
67 <div id="legend">
|
|
68 <h3>Legend:</h3>
|
|
69 <dl>
|
|
70 <dt class="add"></dt><dd>Added</dd><?cs
|
|
71 if:log.mode == "path_history" ?>
|
|
72 <dt class="rem"></dt><dd>Removed</dd><?cs
|
|
73 /if ?>
|
|
74 <dt class="mod"></dt><dd>Modified</dd>
|
|
75 <dt class="cp"></dt><dd>Copied or renamed</dd>
|
|
76 </dl>
|
|
77 </div>
|
|
78 </div>
|
|
79
|
|
80 <form class="printableform" action="<?cs var:log.changeset_href ?>" method="get">
|
|
81 <div class="buttons"><input type="submit" value="View changes"
|
|
82 title="Diff from Old Revision to New Revision (select them below)" />
|
|
83 </div>
|
|
84 <table id="chglist" class="listing">
|
|
85 <thead>
|
|
86 <tr>
|
|
87 <th class="diff"></th>
|
|
88 <th class="change"></th>
|
|
89 <th class="rev">Rev</th>
|
|
90 <th class="chgset">Chgset</th>
|
|
91 <th class="date">Date</th>
|
|
92 <th class="author">Author</th>
|
|
93 <th class="summary"><?cs if:!log.verbose ?>Log Message<?cs /if ?></th>
|
|
94 </tr>
|
|
95 </thead>
|
|
96 <tbody><?cs
|
|
97 set:indent = #1 ?><?cs
|
|
98 set:idx = #0 ?><?cs
|
|
99 each:item = log.items ?><?cs
|
|
100 if:name(item) % #2 ?><?cs
|
|
101 set:even_odd = "odd" ?><?cs
|
|
102 else ?><?cs
|
|
103 set:even_odd = "even" ?><?cs
|
|
104 /if ?><?cs
|
|
105 if:item.copyfrom_path ?>
|
|
106 <tr class="<?cs var:even_odd ?>">
|
|
107 <td class="copyfrom_path" colspan="7" style="padding-left: <?cs var:indent ?>em">
|
|
108 copied from <a href="<?cs var:item.browser_href ?>"><?cs var:item.copyfrom_path ?></a>:
|
|
109 </td>
|
|
110 </tr><?cs
|
|
111 set:indent = indent + #1 ?><?cs
|
|
112 elif:log.mode == "path_history" ?><?cs
|
|
113 set:indent = #1 ?><?cs
|
|
114 /if ?>
|
|
115 <tr class="<?cs var:even_odd ?>">
|
|
116 <td class="diff">
|
|
117 <input type="radio" name="old"
|
|
118 value="<?cs var:item.path ?>@<?cs var:item.rev ?>" <?cs
|
|
119 if:idx == #1 ?> checked="checked" <?cs /if ?> />
|
|
120 <input type="radio" name="new"
|
|
121 value="<?cs var:item.path ?>@<?cs var:item.rev ?>" <?cs
|
|
122 if:idx == #0 ?> checked="checked" <?cs /if ?> /></td>
|
|
123 <td class="change" style="padding-left:<?cs var:indent ?>em">
|
|
124 <a title="View log starting at this revision" href="<?cs var:item.log_href ?>">
|
|
125 <span class="<?cs var:item.change ?>"></span>
|
|
126 <span class="comment">(<?cs var:item.change ?>)</span>
|
|
127 </a>
|
|
128 </td>
|
|
129 <td class="rev">
|
|
130 <a href="<?cs var:item.browser_href ?>"
|
|
131 title="Browse at revision <?cs var:item.rev ?>">@<?cs var:item.rev ?></a>
|
|
132 </td>
|
|
133 <td class="chgset">
|
|
134 <a href="<?cs var:item.changeset_href ?>"
|
|
135 title="View changeset [<?cs var:item.rev ?>]">[<?cs var:item.rev ?>]</a>
|
|
136 </td>
|
|
137 <td class="date"><?cs var:log.changes[item.rev].date ?></td>
|
|
138 <td class="author"><?cs var:log.changes[item.rev].author ?></td>
|
|
139 <td class="summary"><?cs
|
|
140 if:!log.verbose ?><?cs var:log.changes[item.rev].message ?><?cs /if ?></td>
|
|
141 </tr><?cs
|
|
142 if:log.verbose ?>
|
|
143 <tr class="<?cs var:even_odd ?> verbose">
|
|
144 <td class="summary" colspan="7"><?cs var:log.changes[item.rev].message ?></td>
|
|
145 </tr><?cs
|
|
146 /if ?><?cs
|
|
147 set:idx = idx + 1 ?><?cs
|
|
148 /each ?>
|
|
149 </tbody>
|
|
150 </table><?cs
|
|
151 if:len(log.items) > #10 ?>
|
|
152 <div class="buttons"><input type="submit" value="View changes"
|
|
153 title="Diff from Old Revision to New Revision (select them above)" />
|
|
154 </div><?cs
|
|
155 /if ?>
|
|
156 </form><?cs
|
|
157 if:len(links.prev) || len(links.next) ?><div id="paging" class="nav"><ul><?cs
|
|
158 if:len(links.prev) ?><li class="first<?cs
|
|
159 if:!len(links.next) ?> last<?cs /if ?>">← <a href="<?cs
|
|
160 var:links.prev.0.href ?>" title="<?cs
|
|
161 var:links.prev.0.title ?>">Younger Revisions</a></li><?cs
|
|
162 /if ?><?cs
|
|
163 if:len(links.next) ?><li class="<?cs
|
|
164 if:len(links.prev) ?>first <?cs /if ?>last"><a href="<?cs
|
|
165 var:links.next.0.href ?>" title="<?cs
|
|
166 var:links.next.0.title ?>">Older Revisions</a> →</li><?cs
|
|
167 /if ?></ul></div><?cs
|
|
168 /if ?>
|
|
169
|
|
170 <div id="help">
|
|
171 <strong>Note:</strong> See <a href="<?cs var:trac.href.wiki
|
|
172 ?>/TracRevisionLog">TracRevisionLog</a> for help on using the revision log.
|
|
173 </div>
|
|
174
|
|
175 </div>
|
|
176 <?cs include "footer.cs"?>
|