Newer
Older
Import / svn / viewvc-1.1-dev / templates / include / pathrev_form.ezt
<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]