50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
<form method="get" action="[pathrev_action]" style="display: inline">
|
|
[pathrev_hidden_values]
|
|
[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" />
|
|
</form>
|
|
|
|
[if-any pathrev]
|
|
<form method="get" action="[pathrev_clear_action]" style="display: inline">
|
|
[pathrev_clear_hidden_values]
|
|
[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]
|
|
</form>
|
|
[end]
|