Ignore:
Timestamp:
11/29/10 15:22:53 (14 years ago)
Author:
nanardon
Message:
  • add view of rpms over distrib

add path inside website

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Root.pm

    r42 r50  
    3131        $c->res->redirect($c->uri_for("/$path")); 
    3232        return; 
     33    } 
     34 
     35    if (!$c->stash->{path}) { 
     36        my @path; 
     37        my @reqpath = grep { $_ } split('/', $c->req->path); 
     38        foreach (@reqpath) { 
     39            push(@path, $_); 
     40            push(@{ $c->stash->{sitepath} }, { path => $c->uri_for('/', @path), name => $_ }); 
     41        } 
    3342    } 
    3443 
Note: See TracChangeset for help on using the changeset viewer.