Annotation of /trunk/viewvc/magellan-template/query.ezt
Parent Directory | Revision Log
Revision 8 -
(hide annotations)
(download)
Fri May 13 08:48:34 2016 UTC (8 years ago) by niro
File size: 8271 byte(s)
Fri May 13 08:48:34 2016 UTC (8 years ago) by niro
File size: 8271 byte(s)
-updates magellan-template to match viewvc-1.1.24
1 | niro | 4 | <!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 | niro | 8 | [if-any docroot]<link rel="stylesheet" href="[docroot]/styles.css" type="text/css" />[end] |
8 | niro | 4 | </head> |
9 | |||
10 | <body> | ||
11 | |||
12 | [# setup page definitions] | ||
13 | niro | 8 | [define help_href][if-any docroot][docroot]/help_query.html[end][end] |
14 | niro | 4 | [# 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 | niro | 8 | [if-any row_limit_reached] |
162 | <p class="vc_warning">WARNING: These query results have been | ||
163 | artificially limited by an administrative threshold value and do | ||
164 | <em>not</em> represent the entirety of the data set which matches | ||
165 | the query. Consider modifying your query to be more specific</a>, | ||
166 | using your version control tool's query capabilities, or asking | ||
167 | your administrator to raise the database response size | ||
168 | threshold.</p> | ||
169 | [end] | ||
170 | niro | 4 | [if-any commits] |
171 | <table cellspacing="0" cellpadding="2"> | ||
172 | <thead> | ||
173 | <tr class="vc_header"> | ||
174 | <th>Revision</th> | ||
175 | <th>File</th> | ||
176 | <th>Branch</th> | ||
177 | <th>+/-</th> | ||
178 | <th>Date</th> | ||
179 | <th>Author</th> | ||
180 | [# uncommment, if you want a separate Description column: (also see below) | ||
181 | <th>Description</th> | ||
182 | ] | ||
183 | </tr> | ||
184 | </thead> | ||
185 | [for commits] | ||
186 | <tbody> | ||
187 | [for commits.files] | ||
188 | <tr class="vc_row_[if-index commits even]even[else]odd[end]"> | ||
189 | <td style="vertical-align:top;"> | ||
190 | [if-any commits.files.rev][commits.files.rev][else] [end] | ||
191 | </td> | ||
192 | <td style="vertical-align:top;">[commits.files.link]</td> | ||
193 | <td style="vertical-align:top;"> | ||
194 | [if-any commits.files.branch][commits.files.branch][else] [end] | ||
195 | </td> | ||
196 | <td style="vertical-align:top;"> | ||
197 | [is commits.files.type "Add"]<ins>[end] | ||
198 | [is commits.files.type "Change"]<a href="[commits.files.difflink]">[end] | ||
199 | [is commits.files.type "Remove"]<del>[end] | ||
200 | [commits.files.plus]/[commits.files.minus] | ||
201 | [is commits.files.type "Add"]</ins>[end] | ||
202 | [is commits.files.type "Change"]</a>[end] | ||
203 | [is commits.files.type "Remove"]</del>[end] | ||
204 | </td> | ||
205 | <td style="vertical-align:top;"> | ||
206 | [if-any commits.files.date][commits.files.date][else] [end] | ||
207 | </td> | ||
208 | <td style="vertical-align:top;"> | ||
209 | [if-any commits.files.author][commits.files.author][else] [end] | ||
210 | </td> | ||
211 | |||
212 | [# uncommment, if you want a separate Description column: | ||
213 | niro | 8 | {if-index commits.files first} |
214 | niro | 4 | <td style="vertical-align:top;" rowspan="{commits.num_files}"> |
215 | niro | 8 | {if-any commits.log}{commits.log}{else} {end} |
216 | niro | 4 | </td> |
217 | {end} | ||
218 | |||
219 | (substitute brackets for the braces) | ||
220 | ] | ||
221 | </tr> | ||
222 | niro | 8 | [# and also take the following out in the "Description column" case:] |
223 | niro | 4 | [if-index commits.files last] |
224 | <tr class="vc_row_[if-index commits even]even[else]odd[end]"> | ||
225 | <td> </td> | ||
226 | <td colspan="5"><strong>Log:</strong><br /> | ||
227 | niro | 8 | <pre class="vc_log">[if-any commits.log][commits.log][else] [end]</pre></td> |
228 | niro | 4 | </tr> |
229 | [end] | ||
230 | [# ---] | ||
231 | [end] | ||
232 | </tbody> | ||
233 | [end] | ||
234 | |||
235 | <tr class="vc_header"> | ||
236 | <th style="text-align:left;vertical-align:top;"> </th> | ||
237 | <th style="text-align:left;vertical-align:top;"> </th> | ||
238 | <th style="text-align:left;vertical-align:top;"> </th> | ||
239 | <th style="text-align:left;vertical-align:top;"> </th> | ||
240 | <th style="text-align:left;vertical-align:top;"> </th> | ||
241 | <th style="text-align:left;vertical-align:top;"> </th> | ||
242 | [# uncommment, if you want a separate Description column: | ||
243 | <th style="text-align:left;vertical-align:top;"> </th> | ||
244 | ] | ||
245 | </tr> | ||
246 | </table> | ||
247 | [end] | ||
248 | [end] | ||
249 | [include "include/footer.ezt"] |