Annotation of /trunk/viewvc/magellan-template/dir_new.ezt
Parent Directory | Revision Log
Revision 8 -
(hide annotations)
(download)
Fri May 13 08:48:34 2016 UTC (8 years, 1 month ago) by niro
File size: 5437 byte(s)
Fri May 13 08:48:34 2016 UTC (8 years, 1 month ago) by niro
File size: 5437 byte(s)
-updates magellan-template to match viewvc-1.1.24
1 | niro | 4 | [include "include/dir_header.ezt"] |
2 | |||
3 | niro | 8 | <table cellspacing="1" cellpadding="2" class="fixed"> |
4 | niro | 4 | <thead> |
5 | <tr> | ||
6 | niro | 8 | <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 | niro | 4 | [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 | niro | 8 | <th style="width: 96px" class="vc_header"></th> |
15 | [if-any sortby_rev_href] | ||
16 | niro | 4 | <th class="vc_header[is sortby "rev"]_sort[end]"> |
17 | niro | 8 | <a href="[sortby_rev_href]#dirlist">Last Change</a> |
18 | niro | 4 | [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 | niro | 8 | [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 | niro | 4 | </th> |
33 | </tr> | ||
34 | </thead> | ||
35 | |||
36 | <tbody> | ||
37 | [if-any up_href] | ||
38 | <tr class="vc_row_odd"> | ||
39 | niro | 8 | <td style="width: 200px"> |
40 | niro | 4 | <a href="[up_href]"> |
41 | niro | 8 | <img src="[docroot]/images/back_small.png" alt="" class="vc_icon" |
42 | niro | 4 | /> Parent Directory</a> |
43 | </td> | ||
44 | niro | 8 | <td style="width: 96px; font-size: 0;"></td> |
45 | niro | 4 | <td> </td> |
46 | </tr> | ||
47 | [end] | ||
48 | [for entries] | ||
49 | <tr class="vc_row_[if-index entries even]even[else]odd[end]"> | ||
50 | niro | 8 | <td style="width: 200px"> |
51 | niro | 4 | <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 | niro | 8 | <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 | niro | 4 | [entries.name][is entries.pathtype "dir"]/[end]</a> |
54 | niro | 8 | [if-any entries.lockinfo]<img src="[docroot]/images/lock.png" alt="locked" class="vc_icon" title="Locked by [entries.lockinfo]" />[end] |
55 | niro | 4 | [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 | niro | 8 | [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 | niro | 4 | |
72 | niro | 8 | [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 | niro | 4 | [end] |
83 | niro | 8 | [end] |
84 | niro | 4 | |
85 | niro | 8 | [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 | niro | 4 | |
93 | niro | 8 | [define graph_icon_link][if-any entries.graph_href]<a |
94 | href="[entries.graph_href]" | ||
95 | niro | 4 | title="View Revision Graph"><img |
96 | niro | 8 | src="[docroot]/images/cvsgraph_16x16.png" |
97 | alt="View Revision Graph" | ||
98 | class="vc_icon" /></a>[end][end] | ||
99 | niro | 4 | |
100 | niro | 8 | [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 | niro | 4 | |
107 | niro | 8 | [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 | niro | 4 | |
115 | niro | 8 | <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 | niro | 4 | <td> |
123 | [if-any entries.rev] | ||
124 | niro | 8 | <strong>[if-any entries.revision_href]<a href="[entries.revision_href]" title="Revision [entries.rev]">[entries.rev]</a>[else][entries.rev][end]</strong> |
125 | niro | 4 | ([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"] |