Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations) (download)
Fri May 13 08:48:34 2016 UTC (8 years ago) by niro
File size: 5437 byte(s)
-updates magellan-template to match viewvc-1.1.24
1 [include "include/dir_header.ezt"]
2
3 <table cellspacing="1" cellpadding="2" class="fixed">
4 <thead>
5 <tr>
6 <th style="width: 200px" class="vc_header[is sortby "file"]_sort[end]">
7 [if-any sortby_file_href]<a href="[sortby_file_href]#dirlist">File</a>[else]File[end]
8 [is sortby "file"]
9 <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
10 width="13" height="13"
11 src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />
12 [end]
13 </th>
14 <th style="width: 96px" class="vc_header"></th>
15 [if-any sortby_rev_href]
16 <th class="vc_header[is sortby "rev"]_sort[end]">
17 <a href="[sortby_rev_href]#dirlist">Last Change</a>
18 [is sortby "rev"]
19 <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
20 width="13" height="13"
21 src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />
22 [end]
23 [else]
24 <th class="vc_header[is sortby "date"]_sort[end]">
25 [if-any sortby_date_href]<a href="[sortby_date_href]#dirlist">Last Change</a>[else]Last Change[end]
26 [is sortby "date"]
27 <img class="vc_sortarrow" alt="[is sortdir "down"](date)[end]"
28 width="13" height="13"
29 src="[docroot]/images/[is sortdir "up"]up[else]down[end].png" />
30 [end]
31 [end]
32 </th>
33 </tr>
34 </thead>
35
36 <tbody>
37 [if-any up_href]
38 <tr class="vc_row_odd">
39 <td style="width: 200px">
40 <a href="[up_href]">
41 <img src="[docroot]/images/back_small.png" alt="" class="vc_icon"
42 />&nbsp;Parent&nbsp;Directory</a>
43 </td>
44 <td style="width: 96px; font-size: 0;"></td>
45 <td>&nbsp;</td>
46 </tr>
47 [end]
48 [for entries]
49 <tr class="vc_row_[if-index entries even]even[else]odd[end]">
50 <td style="width: 200px">
51 <a name="[entries.anchor]" href="[is entries.pathtype "dir"][entries.view_href][else][if-any entries.prefer_markup][entries.view_href][else][entries.download_href][end][end]" title="[is entries.pathtype "dir"]View Directory Contents[else][if-any entries.prefer_markup]View[else]Download[end] File Contents[end]">
52 <img src="[docroot]/images/[is entries.pathtype "dir"]dir[else][is entries.state "dead"]broken[else]text[end][end].png" alt="" class="vc_icon" />
53 [entries.name][is entries.pathtype "dir"]/[end]</a>
54 [if-any entries.lockinfo]<img src="[docroot]/images/lock.png" alt="locked" class="vc_icon" title="Locked by [entries.lockinfo]" />[end]
55 [is entries.state "dead"](dead)[end]
56 </td>
57
58 [if-any entries.errors]
59 <td colspan="2">[for entries.errors]<em>[entries.errors]</em>[end]</td>
60 [else]
61 [define view_icon_link][end]
62 [define graph_icon_link][end]
63 [define download_icon_link][end]
64 [define annotate_icon_link][end]
65 [define log_icon_link][if-any entries.log_href]<a
66 href="[entries.log_href]"
67 title="View Log"><img
68 src="[docroot]/images/log.png"
69 alt="View Log"
70 class="vc_icon" /></a>[end][end]
71
72 [is entries.pathtype "dir"]
73 [is roottype "cvs"]
74 [# no point in showing icon when there's only one to choose from]
75 [else]
76 [define view_icon_link]<a
77 href="[entries.view_href]"
78 title="View Directory Listing"><img
79 src="[docroot]/images/list.png"
80 alt="View Directory Listing"
81 class="vc_icon" /></a>[end]
82 [end]
83 [end]
84
85 [is entries.pathtype "file"]
86 [define view_icon_link][if-any entries.view_href]<a
87 href="[entries.view_href]"
88 title="View File"><img
89 src="[docroot]/images/view.png"
90 alt="View File"
91 class="vc_icon" /></a>[end][end]
92
93 [define graph_icon_link][if-any entries.graph_href]<a
94 href="[entries.graph_href]"
95 title="View Revision Graph"><img
96 src="[docroot]/images/cvsgraph_16x16.png"
97 alt="View Revision Graph"
98 class="vc_icon" /></a>[end][end]
99
100 [define download_icon_link][if-any entries.download_href]<a
101 href="[entries.download_href]"
102 title="Download File"><img
103 src="[docroot]/images/download.png"
104 alt="Download File"
105 class="vc_icon" /></a>[end][end]
106
107 [define annotate_icon_link][if-any entries.annotate_href]<a
108 href="[entries.annotate_href]"
109 title="Annotate File"><img
110 src="[docroot]/images/annotate.png"
111 alt="Annotate File"
112 class="vc_icon" /></a>[end][end]
113 [end]
114
115 <td style="width: 96px"
116 >[# Icon column. We might want to add more icons like a tarball
117 # icon for directories or a diff to previous icon for files.
118 # Make sure this sucker has no whitespace in it, or the fixed
119 # widthness of will suffer for large font sizes
120 ][log_icon_link][view_icon_link][graph_icon_link][download_icon_link][annotate_icon_link]</td>
121
122 <td>
123 [if-any entries.rev]
124 <strong>[if-any entries.revision_href]<a href="[entries.revision_href]" title="Revision [entries.rev]">[entries.rev]</a>[else][entries.rev][end]</strong>
125 ([entries.ago] ago)
126 by <em>[entries.author]</em>:
127 [entries.log]
128 [is entries.pathtype "dir"][is roottype "cvs"]
129 <em>(from [entries.log_file]/[entries.log_rev])</em>
130 [end][end]
131 [end]
132 </td>
133 [end]
134 </tr>
135 [end]
136 </tbody>
137
138 </table>
139
140 [include "include/dir_footer.ezt"]