Merge remote branch 'shadowcat/master' into sc
[catagits/Gitalist.git] / lib / Gitalist / Controller / Root.pm
index 4210ddc..14ef8ee 100644 (file)
@@ -18,6 +18,14 @@ sub index : Chained('base') PathPart('') Args(0) {
     $c->stash( search_text => $c->req->param('s') || '' ) # FIXME - XSS?
 }
 
+# XXX Fragile much?
+sub css : Chained('/root') PathPart('core.css') Args(0) {
+    my ( $self, $c ) = @_;
+
+    $c->response->content_type('text/css');
+    $c->stash(template => 'static/css/core.css');
+}
+
 sub base : Chained('/root') PathPart('') CaptureArgs(0) {
   my($self, $c) = @_;
 
@@ -50,6 +58,8 @@ sub base : Chained('/root') PathPart('') CaptureArgs(0) {
   );
 }
 
+sub search : Chained('base') Args(0) {}
+
 =head2 search_help
 
 Provides some help for the search form.