Magellan Linux

Contents of /trunk/viewvc/magellan-template/log_table.ezt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations) (download)
Fri May 13 08:48:34 2016 UTC (7 years, 11 months ago) by niro
File size: 6084 byte(s)
-updates magellan-template to match viewvc-1.1.24
1 [include "include/log_header.ezt"]
2
3 <hr />
4 <table cellspacing="1" cellpadding="2">
5 <thead>
6 <tr>
7 <th class="vc_header[is logsort "rev"]_sort[end]">Revision</th>
8 <th class="vc_header">Tasks</th>
9 [is pathtype "file"]
10 <th class="vc_header">Diffs</th>
11 [end]
12 [is roottype "cvs"]
13 <th class="vc_header">Branches/<br />Tags</th>
14 [end]
15 <th class="vc_header[is logsort "date"]_sort[end]">Age</th>
16 <th class="vc_header">Author</th>
17 </tr>
18 </thead>
19
20 [define first_revision][end]
21 [define last_revision][end]
22
23 [for entries]
24 [if-index entries first][define first_revision][entries.rev][end][end]
25 [if-index entries last][define last_revision][entries.rev][end][end]
26 <tbody>
27 <tr style="vertical-align: top;" class="vc_row_[if-index entries even]even[else]odd[end]">
28
29 [# Revision column]
30 <td rowspan="2">
31 [is roottype "svn"]<a href="[entries.revision_href]"><strong>[entries.rev]</strong></a>[else]<strong>[entries.rev]</strong>[end]
32 <a name="rev[entries.rev]"></a>
33 </td>
34
35 [# Tasks column]
36 <td>
37 [if-any entries.view_href]
38 [is pathtype "file"]
39 <a href="[entries.view_href]"><strong>View</strong></a><br />
40 [else]
41 <a href="[entries.view_href]"><strong>Directory Listing</strong></a><br />
42 [end]
43 [end]
44 [if-any entries.download_href]<a href="[entries.download_href]"><strong>Download</strong></a><br />[end]
45 [if-any entries.download_text_href]<a href="[entries.download_text_href]"><strong>As text</strong></a><br />[end]
46 [if-any entries.annotate_href]<a href="[entries.annotate_href]"><strong>Annotate</strong></a><br />[end]
47 </td>
48
49 [is pathtype "file"]
50 <td>
51 [# Diffs column]
52 [is entries.state "dead"]
53 <strong><em>FILE REMOVED</em></strong>
54 [else]
55 [# if you don't want to allow select for diffs then remove this section]
56 [is entries.rev rev_selected]
57 <strong>[[]selected]</strong><br />
58 [else]
59 <a href="[entries.sel_for_diff_href]"><strong>[[]select&nbsp;for&nbsp;diffs]</strong></a><br />
60 [end]
61 [if-any entries.diff_to_sel_href]
62 <a href="[entries.diff_to_sel_href]"><strong>Diff&nbsp;to&nbsp;selected&nbsp;[rev_selected]</strong></a>
63 [if-any human_readable]
64 [else]
65 (<a href="[entries.diff_to_sel_href]&amp;diff_format=h"><strong>colored</strong></a>)
66 [end]<br />
67 [end]
68 [if-any entries.prev]
69 <a href="[entries.diff_to_prev_href]"><strong>Diff&nbsp;to&nbsp;previous&nbsp;[entries.prev]</strong></a>
70 [if-any human_readable]
71 [else]
72 (<a href="[entries.diff_to_prev_href]&amp;diff_format=h"><strong>colored</strong></a>)
73 [end]<br />
74 [end]
75 [end]
76 </td>
77 [end]
78 [is roottype "cvs"]
79 <td>
80 [# Branches column]
81 [if-any entries.vendor_branch]
82 <em>vendor branch</em><br />
83 [end]
84 [if-any entries.branches]
85 [for entries.branches]
86 <a href="[entries.branches.href]"><strong>[entries.branches.name]</strong></a><br />
87 [end]
88 [end]
89 [if-any entries.branch_points]
90 Branch point for:
91 [for entries.branch_points]
92 <a href="[entries.branch_points.href]"><strong>[entries.branch_points.name]</strong></a><br />
93 [end]
94 [end]
95 [if-any entries.next_main]
96 <a href="[entries.diff_to_main_href]"><strong>Diff&nbsp;to&nbsp;next&nbsp;MAIN&nbsp;[entries.next_main]</strong></a>
97 [if-any human_readable]
98 [else]
99 (<a href="[entries.diff_to_main_href]&amp;diff_format=h"><strong>colored</strong></a>)
100 [end]<br />
101 [end]
102 [if-any entries.branch_point]
103 <a href="[entries.diff_to_branch_href]"><strong>Diff&nbsp;to&nbsp;branch&nbsp;point&nbsp;[entries.branch_point]</strong></a>
104 [if-any human_readable]
105 [else]
106 (<a href="[entries.diff_to_branch_href]&amp;diff_format=h"><strong>colored</strong></a>)
107 [end]<br />
108 [end]
109
110 [# Tags ]
111 [if-any entries.tags]
112 <form method=get action="[pathrev_action]" >
113 [for pathrev_hidden_values]<input type="hidden" name="[pathrev_hidden_values.name]" value="[pathrev_hidden_values.value]"/>[end]
114 <select name="pathrev" onChange="submit()">
115 <option value="" [is pathrev ""]selected[end]>Show all tags</option>
116 [for entries.tags]
117 <option [is pathrev entries.tags.name]selected[end]>[entries.tags.name]</option>
118 [end]
119 </select>
120 </form>
121 [else]&nbsp;
122 [end]
123 </td>
124 [end]
125
126 [# Time column]
127 <td>
128 [is roottype "svn"]
129 [if-index entries last]Added[else]Modified[end]
130 [end]
131 [if-any entries.ago][entries.ago] ago<br />[end]
132 [if-any entries.date]<em>[entries.date]</em>[end]
133 [is roottype "cvs"]
134 [if-any entries.prev]
135 [if-any entries.changed]
136 <br />Changes since <strong>[entries.prev]: [entries.changed] lines</strong>
137 [end]
138 [end]
139 [end]
140 </td>
141
142 [# Author column]
143 <td>
144 [entries.author]
145 </td>
146
147 </tr>
148 <tr class="vc_row_[if-index entries even]even[else]odd[end]">
149 <td colspan=5>
150
151 [if-any entries.lockinfo]
152 <strong>Lock status</strong>: <img src="[docroot]/images/lock.png" alt="Locked" width="16" height="16" /> [entries.lockinfo]<br />
153 [end]
154
155 [is roottype "svn"]
156 [if-any entries.orig_path]
157 <strong>Original Path</strong>: <a href="[entries.orig_href]"><em>[entries.orig_path]</em></a><br />
158 [end]
159
160 [if-any entries.size]
161 <strong>File length: </strong>[entries.size] byte(s)<br />
162 [end]
163
164 [if-any entries.copy_path]
165 <strong>Copied from: </strong><a href="[entries.copy_href]"><em>[entries.copy_path]</em></a> revision [entries.copy_rev]<br />
166 [end]
167 [end]
168
169 <strong>Log: </strong><pre class="vc_log">[entries.log]</pre>
170 </td>
171 </tr>
172 </tbody>
173 [end]
174 </table>
175
176 [include "include/log_footer.ezt"]