Moved header & footer logic into the templates.
[catagits/Gitalist.git] / root / nav / search.tt2
index 09f30e4..42aeaea 100644 (file)
@@ -1,6 +1,6 @@
 <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 %]" />
+  <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') %]" />
@@ -12,8 +12,8 @@
       <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 %]"/>
+  </select><sup><a href="[% c.uri_for('search_help') %]">?</a></sup> search:
+  <input type="text" name="text" value="[% c.req.param('s') %]"/>
   <span title="Extended regular expression"><label><input type="checkbox" name="regexp" value="1" />re</label></span>
   </form>
 </div>