Web Design first wave of conversion
[catagits/Gitalist.git] / root / nav / search.tt2
old mode 100644 (file)
new mode 100755 (executable)
index 330a17a..8e15e07
@@ -1,9 +1,9 @@
+[% IF Repository %]
 <div id="page-search">
-  <form method="get" action="[% c.uri_for('search') %]" enctype="application/x-www-form-urlencoded">
-  <input name="p" type="hidden" value="[% Project.name %]">
-  <input name="a" type="hidden" value="search">
-  <input name="h" type="hidden" value="[% commit.sha1 %]">
-  <input name="f" type="hidden" value="[% c.req.param('f') %]">
+  <form method="get" action="[% c.uri_for_action('/repository/search', [Repository.name]) %]" enctype="application/x-www-form-urlencoded">
+  Search
+  <input type="text" name="text" value="[% c.req.param('s') %]" />
   <select name="type">
       <option value="commit">commit</option>
       <option value="author">author</option>
@@ -12,8 +12,9 @@
       <option value="grep">grep</option>
       <option value="pickaxe">pickaxe</option>
       -->
-  </select><sup><a href="[% c.uri_for('search_help') %]">?</a></sup> search:
-  <input type="text" name="text" value="[% c.req.param('s') %]">
+  </select>
   <span title="Extended regular expression"><label><input type="checkbox" name="regexp" value="1">re</label></span>
+   <sup><a href="[% c.uri_for_action('/search_help') %]">?</a></sup> 
   </form>
 </div>
+[% END %]