Fixed links in the wrapper template and added stubs for the next actions to be implem...
broquaint [Wed, 28 Oct 2009 17:50:31 +0000 (17:50 +0000)]
lib/Gitalist/Controller/Root.pm
templates/default.tt2

index 822f3b5..9ec74e1 100644 (file)
@@ -325,6 +325,14 @@ sub reflog : Local {
   );
 }
 
+sub search : Local {
+    Carp::croak "Not implemented.";
+}
+
+sub search_help : Local {
+    Carp::croak "Not implemented.";
+}
+
 =head2 auto
 
 Populate the header and footer. Perhaps not the best location.
@@ -422,7 +430,7 @@ sub header {
 
   if(defined $project) {
     $c->stash(
-      search_text => ( $c->req->param('s') || $c->req->param('searchtext') ),
+      search_text => ( $c->req->param('s') || $c->req->param('searchtext') || ''),
       search_hash => ( $c->req->param('hb') || $c->req->param('hashbase')
           || $c->req->param('h')  || $c->req->param('hash')
           || 'HEAD' ),
index e9a2135..a119460 100644 (file)
@@ -35,7 +35,7 @@
   <a title="[% logo_label | url %]" href="[% logo_url | url %]"><img src="[% logo_img %]" alt="git" class="logo"/></a>
   <a href="[% home_link | url %]">[% home_link_str %]</a>
   [%- IF project %]
-  / <a href="/?p=[% project %];a=summary">[% project %]</a>
+  / <a href="/summary?p=[% project %]">[% project %]</a>
   [% IF action;  " / " _ action; END;
   END %]
 </div>
@@ -52,7 +52,7 @@
       <option value="author">author</option>
       <option value="committer">committer</option>
       <option value="pickaxe">pickaxe</option>
-  </select><sup><a href="/?p=[% project %];a=search_help">?</a></sup> search:
+  </select><sup><a href="/search_help?p=[% project %]">?</a></sup> search:
   <input type="text" name="s" value="[% search_text %]"/>
   <span title="Extended regular expression"><label><input type="checkbox" name="sr" value="1" />re</label></span>
   </form>