Annotation of /trunk/viewvc/magellan-template/include/diff_form.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: 2402 byte(s)
Fri May 13 08:48:34 2016 UTC (8 years ago) by niro
File size: 2402 byte(s)
-updates magellan-template to match viewvc-1.1.24
1 | niro | 4 | <hr /> |
2 | <p><a name="diff"></a> | ||
3 | This form allows you to request diffs between any two revisions of this file. | ||
4 | For each of the two "sides" of the diff, | ||
5 | [if-any tags] | ||
6 | select a symbolic revision name using the selection box, or choose | ||
7 | 'Use Text Field' and enter a numeric revision. | ||
8 | [else] | ||
9 | enter a numeric revision. | ||
10 | [end] | ||
11 | </p> | ||
12 | <form method="get" action="[diff_select_action]" id="diff_select"> | ||
13 | |||
14 | <table cellpadding="2" cellspacing="0" class="auto"> | ||
15 | <tr> | ||
16 | <td> </td> | ||
17 | <td> | ||
18 | niro | 8 | [for diff_select_hidden_values]<input type="hidden" name="[diff_select_hidden_values.name]" value="[diff_select_hidden_values.value]"/>[end] |
19 | niro | 4 | Diffs between |
20 | [if-any tags] | ||
21 | <select name="r1"> | ||
22 | <option value="text" selected="selected">Use Text Field</option> | ||
23 | [for tags] | ||
24 | <option value="[tags.rev]:[tags.name]">[tags.name]</option> | ||
25 | [end] | ||
26 | </select> | ||
27 | <input type="text" size="12" name="tr1" | ||
28 | value="[if-any rev_selected][rev_selected][else][first_revision][end]" | ||
29 | onchange="document.getElementById('diff_select').r1.selectedIndex=0" /> | ||
30 | [else] | ||
31 | <input type="text" size="12" name="r1" | ||
32 | value="[if-any rev_selected][rev_selected][else][first_revision][end]" /> | ||
33 | [end] | ||
34 | |||
35 | and | ||
36 | [if-any tags] | ||
37 | <select name="r2"> | ||
38 | <option value="text" selected="selected">Use Text Field</option> | ||
39 | [for tags] | ||
40 | <option value="[tags.rev]:[tags.name]">[tags.name]</option> | ||
41 | [end] | ||
42 | </select> | ||
43 | <input type="text" size="12" name="tr2" | ||
44 | value="[last_revision]" | ||
45 | onchange="document.getElementById('diff_select').r2.selectedIndex=0" /> | ||
46 | [else] | ||
47 | <input type="text" size="12" name="r2" value="[last_revision]" /> | ||
48 | [end] | ||
49 | </td> | ||
50 | </tr> | ||
51 | <tr> | ||
52 | <td> </td> | ||
53 | <td> | ||
54 | Type of Diff should be a | ||
55 | <select name="diff_format" onchange="submit()"> | ||
56 | <option value="h" [is diff_format "h"]selected="selected"[end]>Colored Diff</option> | ||
57 | <option value="l" [is diff_format "l"]selected="selected"[end]>Long Colored Diff</option> | ||
58 | niro | 8 | <option value="f" [is diff_format "f"]selected="selected"[end]>Full Colored Diff</option> |
59 | niro | 4 | <option value="u" [is diff_format "u"]selected="selected"[end]>Unidiff</option> |
60 | <option value="c" [is diff_format "c"]selected="selected"[end]>Context Diff</option> | ||
61 | <option value="s" [is diff_format "s"]selected="selected"[end]>Side by Side</option> | ||
62 | </select> | ||
63 | <input type="submit" value=" Get Diffs " /> | ||
64 | </td> | ||
65 | </tr> | ||
66 | </table> | ||
67 | </form> |