Web Design first wave of conversion
[catagits/Gitalist.git] / root / nav / search.tt2
old mode 100644 (file)
new mode 100755 (executable)
index a86a935..8e15e07
@@ -1,10 +1,10 @@
-<div class="search">
-  <form method="get" action="[% c.uri_for('search') %]" enctype="application/x-www-form-urlencoded">
-  <input name="p" type="hidden" value="[% project %]" />
-  <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') %]" />
-  <select name="type" >
+[% IF Repository %]
+<div id="page-search">
+  <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>
       <option value="committer">committer</option>
@@ -12,8 +12,9 @@
       <option value="grep">grep</option>
       <option value="pickaxe">pickaxe</option>
       -->
-  </select><sup><a href="/search_help?p=[% project %]">?</a></sup> search:
-  <input type="text" name="text" value="[% search_text %]"/>
-  <span title="Extended regular expression"><label><input type="checkbox" name="regexp" value="1" />re</label></span>
+  </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 %]