Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations) (download)
Tue Oct 30 22:18:26 2012 UTC (11 years, 7 months ago) by niro
File size: 7711 byte(s)
-initial viewvc theme for cvs.magellan-linux.de/svn.magellan-linux.de
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <!-- ViewVC :: http://www.viewvc.org/ -->
5 <head>
6 <title>Checkin Database Query</title>
7 <link rel="stylesheet" href="[docroot]/styles.css" type="text/css" />
8 </head>
9
10 <body>
11
12 [# setup page definitions]
13 [define help_href][docroot]/help_query.html[end]
14 [# end]
15
16 <p>
17 Select your parameters for querying the CVS commit database. You
18 can search for multiple matches by typing a comma-seperated list
19 into the text fields. Regular expressions, and wildcards are also
20 supported. Blank text input fields are treated as wildcards.
21 </p>
22 <p>
23 Any of the text entry fields can take a comma-seperated list of
24 search arguments. For example, to search for all commits from
25 authors <em>jpaint</em> and <em>gstein</em>, just type: <strong>jpaint,
26 gstein</strong> in the <em>Author</em> input box. If you are searching
27 for items containing spaces or quotes, you will need to quote your
28 request. For example, the same search above with quotes is:
29 <strong>"jpaint", "gstein"</strong>.
30 </p>
31 <p>
32
33 Wildcard and regular expression searches are entered in a similar
34 way to the quoted requests. You must quote any wildcard or
35 regular expression request, and a command charactor preceeds the
36 first quote. The command charactor <strong>l</strong> is for wildcard
37 searches, and the wildcard charactor is a percent (<strong>%</strong>). The
38 command charactor for regular expressions is <strong>r</strong>, and is
39 passed directly to MySQL, so you'll need to refer to the MySQL
40 manual for the exact regex syntax. It is very similar to Perl. A
41 wildard search for all files with a <em>.py</em> extention is:
42 <strong>l"%.py"</strong> in the <em>File</em> input box. The same search done
43 with a regular expression is: <strong>r".*\.py"</strong>.
44 </p>
45 <p>
46 All search types can be mixed, as long as they are seperated by
47 commas.
48 </p>
49
50 <form method="get" action="">
51
52 <div class="vc_query_form">
53 <table cellspacing="0" cellpadding="2" class="auto">
54 <tr>
55 <td>
56 <table>
57 <tr>
58 <td style="vertical-align:top;">
59
60 <table>
61 <tr>
62 <td align="right">CVS Repository:</td>
63 <td>
64 <input type="text" name="repository" size="40" value="[repository]" />
65 </td>
66 </tr>
67 <tr>
68 <td align="right">CVS Branch:</td>
69 <td>
70 <input type="text" name="branch" size="40" value="[branch]" />
71 </td>
72 </tr>
73 <tr>
74 <td align="right">Directory:</td>
75 <td>
76 <input type="text" name="directory" size="40" value="[directory]" />
77 </td>
78 </tr>
79 <tr>
80 <td align="right">File:</td>
81 <td>
82 <input type="text" name="file" size="40" value="[file]" />
83 </td>
84 </tr>
85 <tr>
86 <td align="right">Author:</td>
87 <td>
88 <input type="text" name="who" size="40" value="[who]" />
89 </td>
90 </tr>
91 </table>
92
93 </td>
94 <td style="vertical-align:top;">
95
96 <table>
97 <tr>
98 <td align="left">Sort By:</td>
99 <td>
100 <select name="sortby">
101 <option value="date" [is sortby "date"]selected="selected"[end]>Date</option>
102 <option value="author" [is sortby "author"]selected="selected"[end]>Author</option>
103 <option value="file" [is sortby "file"]selected="selected"[end]>File</option>
104 </select>
105 </td>
106 </tr>
107 <tr>
108 <td colspan="2">
109 <table cellspacing="0" cellpadding="0">
110 <tr>
111 <td>Date:</td>
112 </tr>
113 <tr>
114 <td><input type="radio" name="date" value="hours"
115 [is date "hours"]checked="checked"[end] /></td>
116 <td>In the last
117 <input type="text" name="hours" value="[hours]" size="4" />hours
118 </td>
119 </tr>
120 <tr>
121 <td><input type="radio" name="date" value="day"
122 [is date "day"]checked="checked"[end] /></td>
123 <td>In the last day</td>
124 </tr>
125 <tr>
126 <td><input type="radio" name="date" value="week"
127 [is date "week"]checked="checked"[end] /></td>
128 <td>In the last week</td>
129 </tr>
130 <tr>
131 <td><input type="radio" name="date" value="month"
132 [is date "month"]checked="checked"[end] /></td>
133 <td>In the last month</td>
134 </tr>
135 <tr>
136 <td><input type="radio" name="date" value="all"
137 [is date "all"]checked="checked"[end] /></td>
138 <td>Since the beginning of time</td>
139 </tr>
140 </table>
141 </td>
142 </tr>
143 </table>
144
145 </td>
146 </tr>
147 </table>
148 </td>
149 <td>
150 <input type="submit" value="Search" />
151 </td>
152 </tr>
153 </table>
154 </div>
155
156 </form>
157
158 [is query "skipped"]
159 [else]
160 <p><strong>[num_commits]</strong> matches found.</p>
161
162 [if-any commits]
163 <table cellspacing="0" cellpadding="2">
164 <thead>
165 <tr class="vc_header">
166 <th>Revision</th>
167 <th>File</th>
168 <th>Branch</th>
169 <th>+/-</th>
170 <th>Date</th>
171 <th>Author</th>
172 [# uncommment, if you want a separate Description column: (also see below)
173 <th>Description</th>
174 ]
175 </tr>
176 </thead>
177 [for commits]
178 <tbody>
179 [for commits.files]
180 <tr class="vc_row_[if-index commits even]even[else]odd[end]">
181 <td style="vertical-align:top;">
182 [if-any commits.files.rev][commits.files.rev][else]&nbsp;[end]
183 </td>
184 <td style="vertical-align:top;">[commits.files.link]</td>
185 <td style="vertical-align:top;">
186 [if-any commits.files.branch][commits.files.branch][else]&nbsp;[end]
187 </td>
188 <td style="vertical-align:top;">
189 [is commits.files.type "Add"]<ins>[end]
190 [is commits.files.type "Change"]<a href="[commits.files.difflink]">[end]
191 [is commits.files.type "Remove"]<del>[end]
192 [commits.files.plus]/[commits.files.minus]
193 [is commits.files.type "Add"]</ins>[end]
194 [is commits.files.type "Change"]</a>[end]
195 [is commits.files.type "Remove"]</del>[end]
196 </td>
197 <td style="vertical-align:top;">
198 [if-any commits.files.date][commits.files.date][else]&nbsp;[end]
199 </td>
200 <td style="vertical-align:top;">
201 [if-any commits.files.author][commits.files.author][else]&nbsp;[end]
202 </td>
203
204 [# uncommment, if you want a separate Description column:
205 {if-index commits.files first{
206 <td style="vertical-align:top;" rowspan="{commits.num_files}">
207 {commits.log}
208 </td>
209 {end}
210
211 (substitute brackets for the braces)
212 ]
213 </tr>
214 [# and also take the following out in the "Description column"-case:]
215 [if-index commits.files last]
216 <tr class="vc_row_[if-index commits even]even[else]odd[end]">
217 <td>&nbsp;</td>
218 <td colspan="5"><strong>Log:</strong><br />
219 <pre class="vc_log">[commits.log]</pre></td>
220 </tr>
221 [end]
222 [# ---]
223 [end]
224 </tbody>
225 [end]
226
227 <tr class="vc_header">
228 <th style="text-align:left;vertical-align:top;">&nbsp;</th>
229 <th style="text-align:left;vertical-align:top;">&nbsp;</th>
230 <th style="text-align:left;vertical-align:top;">&nbsp;</th>
231 <th style="text-align:left;vertical-align:top;">&nbsp;</th>
232 <th style="text-align:left;vertical-align:top;">&nbsp;</th>
233 <th style="text-align:left;vertical-align:top;">&nbsp;</th>
234 [# uncommment, if you want a separate Description column:
235 <th style="text-align:left;vertical-align:top;">&nbsp;</th>
236 ]
237 </tr>
238 </table>
239 [end]
240 [end]
241 [include "include/footer.ezt"]