File: dir_alternate.ezt

package info (click to toggle)
viewcvs 0.9.2%2Bcvs.1.0.dev.2004.07.28-4.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,452 kB
  • ctags: 1,355
  • sloc: python: 10,100; cpp: 840; ansic: 763; yacc: 526; sh: 163; makefile: 115
file content (152 lines) | stat: -rw-r--r-- 5,196 bytes parent folder | download | duplicates (8)
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
[include "include/dir_header.ezt"]

<table width="100%" border=0 cellspacing=1 cellpadding=2>
<thead>
<tr>
  <th class="vc_header[is sortby "rev"]_sort[end]">
    <a href="[sortby_rev_href]#dirlist">Rev.</a>
    [is sortby "rev"]
      <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
        width="13" height="13"
        src="[docroot]/images/[is sortdir "up"]down[else]up[end].png" />
    [end]
  </th>
  <th class="vc_header[is sortby "file"]_sort[end]"
    [is cfg.options.use_cvsgraph "1"]colspan=2[end]>
    <a href="[sortby_file_href]#dirlist">File</a>
    [is sortby "file"]
      <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
        width="13" height="13"
        src="[docroot]/images/[is sortdir "up"]down[else]up[end].png" />
    [end]
  </th>
  <th class="vc_header[is sortby "date"]_sort[end]">
    <a href="[sortby_date_href]#dirlist">Age</a>
    [is sortby "date"]
      <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
        width="13" height="13"
        src="[docroot]/images/[is sortdir "up"]down[else]up[end].png" />
    [end]
  </th>
  <th class="vc_header[is sortby "author"]_sort[end]">
    <a href="[sortby_author_href]#dirlist">Author</a>
    [is sortby "author"]
      <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
        width="13" height="13"
        src="[docroot]/images/[is sortdir "up"]down[else]up[end].png" />
    [end]
  </th>
[is cfg.options.show_logs "1"]
  <th class="vc_header[is sortby "log"]_sort[end]">
    <a href="[sortby_log_href]#dirlist">Last log entry</a>
    [is sortby "log"]
      <img class="vc_sortarrow" alt="[is sortdir "down"](rev)[end]"
        width="13" height="13"
        src="[docroot]/images/[is sortdir "up"]down[else]up[end].png" />
    [end]
  </th>
[end]
</tr>
</thead>

<tbody>
[for rows]
  <tr class="vc_row_[if-index rows even]even[else]odd[end]">
  [is rows.type "unreadable"]
    <td>&nbsp;</td> [# revision ]
    <td [is cfg.options.use_cvsgraph "1"]colspan=2[end]>
      <a name="[rows.anchor]">[rows.name]</a>
    </td>
    <td colspan=[is cfg.options.show_logs "1"]3[else]2[end]>
       <i>This entry is unreadable</i>
    </td>
  [else]
    [is rows.type "dir"]
      [is rows.state "error"]
        <td>&nbsp;</td> [# revision ]
      [else]
        <td>&nbsp;[is roottype "svn"]<a href="[rows.rev_href]"><b>[rows.rev]</b></a>[end]</td>
      [end]
      <td [is cfg.options.use_cvsgraph "1"]colspan=2[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.state "error"]
        <td colspan=[is cfg.options.show_logs "1"]3[else]2[end]>
          <i>Last modification unavailable - could not read CVS information</i>
        </td>
      [else]
        [is rows.state "none"]
          <td>&nbsp;</td> [# age ]
          <td>&nbsp;</td> [# author ]
          [is cfg.options.show_logs "1"]<td>&nbsp;</td> [# log ][end]
        [else]
          <td>&nbsp;[rows.time]</td>
          [if-any rows.author]
            <td>&nbsp;[rows.author]</td>
          [end]
          [is cfg.options.show_logs "1"]
            [if-any rows.show_log]
              <td>&nbsp;[rows.log][is roottype "cvs"] 
                <i>(from [rows.log_file]/[rows.log_rev])</i>[end]</td>
            [else]
              <td>&nbsp;</td>
            [end]
          [end]
        [end]
      [end]
          
    [else]
      [is rows.state "error"]
        <td>&nbsp;</td>
        <td [is cfg.options.use_cvsgraph "1"]colspan=2[end]>
          <a name="[rows.anchor]">[rows.name]</a>
        </td>
        <td colspan=[is cfg.options.show_logs "1"]3[else]2[end]>
         <i>CVS information is unreadable</i>
        </td>
      [else]
        <td>&nbsp;<a href="[rows.href]"><b>[rows.rev]</b></a></td>
        <td><a name="[rows.anchor]" href="[rows.rev_href]">
            <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>
        [is cfg.options.use_cvsgraph "1"]
          [if-any rows.graph_href]
            <td width="1%"><a href="[rows.graph_href]"><img
              src="[docroot]/images/cvsgraph_16x16.png"
              alt="(graph)" width=16 height=16 border=0>
            </a></td>
          [else]
            <td>&nbsp;</td>
          [end]
        [end]
        <td>&nbsp;[rows.time]</td>
        [if-any rows.author]
          <td>&nbsp;[rows.author]</td>
        [end]
        [is cfg.options.show_logs "1"]
          <td>&nbsp;[if-any rows.show_log][rows.log][end]</td>
        [end]
      [end]
    [end]
  [end]
  </tr>
[end]
</tbody>

</table>

[include "include/dir_footer.ezt"]