summaryrefslogtreecommitdiff
blob: 038cd6fc67eadb03803130ca79d32fa6d1521cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"
 "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head>
<!-- ViewCVS       -- http://viewcvs.sourceforge.net/
     by Greg Stein -- mailto:gstein@lyra.org
  -->
<title>[if-any where][where][else][cfg.general.main_title][end]</title>
</head>
<body text="#000000" bgcolor="#ffffff">
<table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr>
    <td rowspan=2><h1>[if-any where][where][else][cfg.general.main_title][end]</h1></td>
    <td align=right><img src="/images/gentoo-new.gif" alt="(logo)" border=0></td>
  </tr>
  <tr>
    <td align=right><h3><b><a target="_blank"
href="[request.script_name]/*docroot*/help_[if-any where]dir[else]root[end]view.html">ViewCVS and CVS Help</a></b></h3></td>
  </tr>
</table>

[if-any where][else]
  <!-- you may insert repository access instructions here -->

  [if-any roots]
    <h3>Project Root</h3>
    <form method=GET action="[request.script_name]/[if-any request.embedded_root][request.embedded_root]/[end][if-any where][where]/[end]">
      <select name=root onchange="submit()">
      [for roots]
        [is roots current_root]
          <option selected>[roots]</option>
        [else]
          <option>[roots]</option>
        [end]
      [end]
      </select>
      <input type=submit value="Go">
    </form>
  [end]
[end]

<p><a name="dirlist"></a></p>

[if-any where]
<table>
<tr><td>Current directory:</td><td><b>[nav_path]</b></td></tr>
[if-any view_tag]
<tr><td>Current tag:</td><td><b>[view_tag]</b></td></tr>
[end]
[if-any search_re]
<tr><td>Current search:</td><td><b>[search_re]</b></td></tr>
[end]
[is num_files "0"]
[else]
<tr><td>Files shown:</td><td><b>[files_shown]</b></td></tr>
[end]
</table>
  [is cfg.options.use_pagesize "0"]
  [else]
    [is picklist_len "1"]
    [else]
      <form method=GET action="[request.script_name]/[if-any request.embedded_root][request.embedded_root]/[end][if-any where][where]/[end]">
        [dir_paging_hidden_values]
        <input type=submit value="Go to:">
        <select name=dir_pagestart  onchange="submit()">
          [for picklist]
            <option [is picklist.count dir_pagestart]selected[end] value="[picklist.count]">Page [picklist.page]: [picklist.start] to [picklist.end]</option>
          [end]
        </select>
      </form>
    [end]
  [end]
[end]

<hr noshade>

[# if you want a colored border around the table of directory
   information, then add this additional table tag:

   <table border=0 cellpadding=0 width="100%"><tr>
     <td bgcolor="#999999">
]


<table width="100%" border=0 cellspacing=1 cellpadding=2>
<tr>
[if-any have_logs]
  [is sortby "rev"]
    <th align=left bgcolor="#88ff88">Rev.&nbsp;[is sortdir "up"]<a 
         href="./[sortdir_down_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/down.png"></a>[else]<a
         href="./[sortdir_up_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/up.png"></a>[end]</th>
  [else]
    <th align=left bgcolor="#cccccc"
      ><a href="./[sortby_rev_href]#dirlist">Rev.</a></th>
  [end]
  [is sortby "file"]
    <th align=left bgcolor="#88ff88"
      [is cfg.options.use_cvsgraph "1"]colspan=2[end]
      >File&nbsp;[is sortdir "up"]<a
         href="./[sortdir_down_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/down.png"></a>[else]<a
         href="./[sortdir_up_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/up.png"></a>[end]</th>
  [else]
    <th align=left bgcolor="#cccccc"
      [is cfg.options.use_cvsgraph "1"]colspan=2[end]
      ><a href="./[sortby_file_href]#dirlist">File</a></th>
  [end]
  [is sortby "date"]
    <th align=left bgcolor="#88ff88">Age&nbsp;[is sortdir "up"]<a 
         href="./[sortdir_down_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/down.png"></a>[else]<a
         href="./[sortdir_up_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/up.png"></a>[end]</th>
  [else]
    <th align=left bgcolor="#cccccc"
      ><a href="./[sortby_date_href]#dirlist">Age</a></th>
  [end]
  [is sortby "author"]
    <th align=left bgcolor="#88ff88">Author&nbsp;[is sortdir "up"]<a 
         href="./[sortdir_down_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/down.png"></a>[else]<a
         href="./[sortdir_up_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/up.png"></a>[end]</th>
  [else]
    <th align=left bgcolor="#cccccc"
      ><a href="./[sortby_author_href]#dirlist">Author</a></th>
  [end]
  [is sortby "log"]
    <th align=left bgcolor="#88ff88">Last log entry&nbsp;[is sortdir "up"]<a 
         href="./[sortdir_down_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/down.png"></a>[else]<a
         href="./[sortdir_up_href]#dirlist"><img 
	 src="[request.script_name]/*docroot*/images/up.png"></a>[end]</th>
  [else]
    <th align=left bgcolor="#cccccc"
      ><a href="./[sortby_log_href]#dirlist">Last log entry</a></th>
  [end]
[else]
  <th align=left bgcolor="#cccccc">File</th>
[end]
</tr>

[for rows]
  <tr bgcolor="[if-index rows even]#ffffff[else]#ccccee[end]">
  [is rows.type "unreadable"]
    [if-any have_logs]
      <td>&nbsp;</td> [# revision ]
    [end]
    <td><a name="[rows.anchor]">[rows.name]</a>
      [if-any have_logs]
        </td>
        <td colspan=[is cfg.options.use_cvsgraph "1"]4[else]3[end]>
          <i>this entry is unreadable</i>
        </td>
      [else]
      - <i>this entry is unreadable</i>
      [end]
    </td>
  [else]
    [is rows.type "dir"]
      [if-any have_logs]
        <td>&nbsp;</td> [# revision ]
      [end]
      <td [if-any have_logs][is cfg.options.use_cvsgraph "1"]colspan=2[end][end]>
        <a name="[rows.anchor]" href="[rows.href]">
        <img src="/icons/small/dir.gif" alt="(dir)" border=0 width=16 height=16>
        [rows.name]
        </a>
        [is roottype "cvs"]
          [is rows.name "Attic/"]
            &nbsp; <a href="./[show_attic_href]#dirlist">[[]show contents]</a>
          [end]
        [end]
      </td>
      [is rows.cvs "error"]
        [# for an error to occur, we must have some logs. always use colspan]
        <td colspan=3>
          <i>Last modification unavailable - could not read CVS information</i>
        </td>
      [else]
      [if-any have_logs]
        [is rows.cvs "none"]
          <td>&nbsp;</td> [# age ]
          <td>&nbsp;</td> [# author ]
          <td>&nbsp;</td> [# log ]
        [else]
          <td>&nbsp;[rows.time]</td>
          [if-any rows.author]
            <td>&nbsp;[rows.author]</td>
          [end]
          [if-any rows.show_log]
            <td>&nbsp;[rows.log_file]/[rows.log_rev]<br>
              &nbsp;<font size="-1">[rows.log]</font></td>
          [end]
        [end]
      [end]
      [end]
          
    [else]
      [is rows.cvs "error"]
        <td>&nbsp;</td>
        <td [is cfg.options.use_cvsgraph "1"]colspan=2[end]>
          <a name="[rows.anchor]">[rows.name]</a>
        </td>
        <td colspan=3><i>CVS information is unreadable</i></td>
      [else]
        <td width="1%">&nbsp;<a href="[rows.href]"><b>[rows.rev]</b></a></td>
        <td><a name="[rows.anchor]" href="[rows.rev_href]&amp;content-type=text/vnd.viewcvs-markup">
[# to display the revision in a separate window, you could use:

   <a name="{rows.anchor}" href="{rows.rev_href}" target="cvs_checkout"
      onclick="window.open('{rows.rev_href}', 'cvs_checkout',
                           'resizeable=1,scrollbars=1');return false"><b>{rows.rev}</b></a>

   (substitute brackets for the braces)
]
            <img src="/icons/small/text.gif" alt="(file)" border=0
                 width=16 height=16>
            [rows.name]
            </a>
            [is rows.state "dead"]
              [# don't let this phrase/link be wrapped ]
              [if-any view_tag](not&nbsp;exist)[else](in&nbsp;the&nbsp;Attic)[end][if-any attic_showing]&nbsp;<a href="./[hide_attic_href]#dirlist">[[]hide][end]</a>
            [end]
        </td>
        [if-any rows.graph_href]
          <td width="1%"><a href="[rows.graph_href]"><img
            src="[request.script_name]/*docroot*/images/cvsgraph_16x16.png"
            alt="(graph)" width=16 height=16 border=0>
          </a></td>
        [end]

        <td>&nbsp;[rows.time]</td>
        [if-any rows.author]
          <td>&nbsp;[rows.author]</td>
        [end]
        [if-any rows.show_log]
          <td>&nbsp;[rows.log]</td>
        [end]
      [end]
    [end]
  [end]
  </tr>
[end]

</table>

[# if you are using a table border (see above), then add:

   </td></tr></table>
]

[if-any no_match]
  <p><b>NOTE:</b> There are [num_files] files, but none match the
  current selection criteria.
[end]

[if-any unreadable]
  <hr size=1 noshade>
  <b>NOTE:</b> One or more files were unreadable. The files in the CVS
  repository should be readable by the web server process. Please
  report this condition to the administrator of this CVS repository.
[end]

[if-any selection_form]
  <hr size=1 noshade>
  <form method=GET action="[request.script_name]/[if-any request.embedded_root][request.embedded_root]/[end][if-any where][where]/[end]">
    [search_tag_hidden_values]
    [# this table holds the selectors on the left, and reset on the right ]
    <table>
      [if-any has_tags]
        <tr>
          <td> Show files using tag: </td>
          <td>
            <select name=only_with_tag onchange="submit()">
            [if-any branch_tags]
              <option value="">- Branches -</option>
              [for branch_tags]
                [is branch_tags view_tag]
                  <option selected>[branch_tags]</option>
                [else]
                  <option>[branch_tags]</option>
                [end]
              [end]
            [end]
            <option value="">- Non-branch tags -</option>
            [for plain_tags]
              [is plain_tags view_tag]
                <option selected>[plain_tags]</option>
              [else]
                <option>[plain_tags]</option>
              [end]
            [end]
            </select>
          </td>
          <td> &nbsp; </td>
        </tr>
      [end]

      [is num_files "0"]
      [else]
        [is cfg.options.use_re_search "1"]
          <tr>
            <td>Show files containing the regular expression:</td>
            <td><input type="text" name="search" value="[search_re]"></td>
            <td> &nbsp; </td>
          </tr>
        [end]

        <tr>
          <td> &nbsp; </td>
          <td> <input type="submit" value="Show"> </td>
      [end]
  [# I don't like closing the form here, but I thought this is better than 
     having forms inside forms ]
  </form>
      [if-any view_tag]
        <td valign=bottom>
          <form method=GET action="[request.script_name]/[if-any request.embedded_root][request.embedded_root]/[end][if-any where][where]/[end]">
            <input type="hidden" name="root" value="[current_root]">
            <input type="submit" value="Show all files">
          </form>
        </td>
      [else]
        [if-any search_re]
          <td valign=bottom>
            <form method=GET action="[request.script_name]/[if-any request.embedded_root][request.embedded_root]/[end][if-any where][where]/[end]">
              <input type="submit" value="Show all files">
            </form>
          </td>
        [end]
      [end]
    </tr>
  </table>
[end]

[# if you want to disable tarball generation remove the following: ]
[if-any tarball_href]
  <a href="[tarball_href]">Download tarball</a>
[end]

[include "footer.ezt"]