diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2010-03-24 10:24:15 -0500 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2010-03-24 10:24:15 -0500 |
commit | 6cf7bc847ece2f75027235a93ca17a86fcc12cbd (patch) | |
tree | de2803eb43d198aaea36155c41951e6fc00e1421 /include/pathrev_form.ezt | |
download | gentoo-viewvc-templates-6cf7bc847ece2f75027235a93ca17a86fcc12cbd.tar.gz gentoo-viewvc-templates-6cf7bc847ece2f75027235a93ca17a86fcc12cbd.tar.bz2 gentoo-viewvc-templates-6cf7bc847ece2f75027235a93ca17a86fcc12cbd.zip |
Initial commit. Default template from viewvc package
Diffstat (limited to 'include/pathrev_form.ezt')
-rw-r--r-- | include/pathrev_form.ezt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/include/pathrev_form.ezt b/include/pathrev_form.ezt new file mode 100644 index 0000000..33ff961 --- /dev/null +++ b/include/pathrev_form.ezt @@ -0,0 +1,53 @@ +<form method="get" action="[pathrev_action]" style="display: inline"> +<div style="display: inline"> +[for pathrev_hidden_values]<input type="hidden" name="[pathrev_hidden_values.name]" value="[pathrev_hidden_values.value]"/>[end] +[is roottype "cvs"] + [define pathrev_selected][pathrev][end] + <select name="pathrev" onchange="submit()"> + <option value=""></option> + [if-any branch_tags] + <optgroup label="Branches"> + [for branch_tags] + [is branch_tags pathrev] + <option selected>[branch_tags]</option> + [define pathrev_selected][end] + [else] + <option>[branch_tags]</option> + [end] + [end] + </optgroup> + [end] + <optgroup label="Non-branch tags"> + [for plain_tags] + [is plain_tags pathrev] + <option selected>[plain_tags]</option> + [define pathrev_selected][end] + [else] + <option>[plain_tags]</option> + [end] + [end] + </optgroup> + [if-any pathrev_selected] + <option selected>[pathrev_selected]</option> + [end] + </select> +[else] + <input type="text" name="pathrev" value="[pathrev]" size="6"/> +[end] +<input type="submit" value="Set" /> +</div> +</form> + +[if-any pathrev] +<form method="get" action="[pathrev_clear_action]" style="display: inline"> +<div style="display: inline"> +[for pathrev_clear_hidden_values]<input type="hidden" name="[pathrev_clear_hidden_values.name]" value="[pathrev_clear_hidden_values.value]"/>[end] +[if-any lastrev] + [is pathrev lastrev][else]<input type="submit" value="Set to [lastrev]" />[end] + (<i>Current path doesn't exist after revision <strong>[lastrev]</strong></i>) +[else] + <input type="submit" value="Clear" /> +[end] +</div> +</form> +[end] |