Changeset 50 for server/trunk
- Timestamp:
- 11/29/10 15:22:53 (14 years ago)
- Location:
- server/trunk/web
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Distrib.pm
r42 r50 204 204 205 205 sub srpm_by_name :Chained('distrib_view') PathPart('srpms/by-name') Args(1) { 206 } 206 my ($self, $c, $name) = @_; 207 $c->stash->{dist}{src} = 1; 208 ($c->stash->{pkgid}) = @{ $c->forward('/search/bytag', 209 [ $c->stash->{dist}, 'name', $name ]) }; 210 $c->go('/404/index') unless ($c->stash->{pkgid}); 211 $c->go('/rpms/rpms', [ $c->stash->{pkgid} ]); 212 } 213 207 214 sub rpm_by_name :Chained('distrib_view') PathPart('rpms/by-name') Args(1) { 208 } 215 my ($self, $c, $name) = @_; 216 $c->stash->{dist}{src} = 0; 217 ($c->stash->{pkgid}) = @{ $c->forward('/search/bytag', 218 [ $c->stash->{dist}, 'name', $name ]) }; 219 $c->go('/404/index') unless ($c->stash->{pkgid}); 220 $c->go('/rpms/rpms', [ $c->stash->{pkgid} ]); 221 } 222 209 223 sub rpm_by_pkid :Chained('distrib_view') PathPart('by-pkgid') Args(1) { 210 224 } -
server/trunk/web/lib/Sophie/Controller/Root.pm
r42 r50 31 31 $c->res->redirect($c->uri_for("/$path")); 32 32 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 } 33 42 } 34 43 -
server/trunk/web/lib/Sophie/Controller/Rpms.pm
r47 r50 147 147 user => $_->get_column('user'), 148 148 group => $_->get_column('group'), 149 has_content => $_->get_column('has_content'), 149 150 } 150 151 } $c->model('Base')->resultset('Files')->search( … … 153 154 }, 154 155 { 155 'select' => [ ' rpmfilesmode(mode) as perm', @col, '"group"',156 'select' => [ 'contents is NOT NULL as has_content', 'rpmfilesmode(mode) as perm', @col, '"group"', 156 157 '"user"' ], 157 as => [ qw( perm), @col, 'group', 'user' ],158 as => [ qw(has_content perm), @col, 'group', 'user' ], 158 159 order_by => [ 'dirname', 'basename' ], 159 160 -
server/trunk/web/root/templates/html/explorer/index.html
r40 r50 1 1 2 < p>2 <!-- <p> 3 3 <a href="[% c.uri_for('/explorer') %]">/</a> 4 4 [% FOREACH p = eachpath %] 5 5 <a href="[% c.uri_for('/explorer', p.path) %]">[% p.dir | html %]</a> 6 6 [% END %] 7 </p> 7 </p>--> 8 8 9 9 <div id="exp_dir" style="float: left; border: outset; width: 30%"> -
server/trunk/web/root/templates/html/rpms/rpms.tt
r49 r50 66 66 [% FOREACH file = xmlrpc.files %] 67 67 [%- IF loop.first -%] 68 < pre style="padding: 1em; margin: 2em;">68 <table border=0 style="font-family: monospace"> 69 69 [%- END -%] 70 [% file.perm %] [% file.size | format('%6d') %] [% file.user | format('%10s') -%] 71 [%- file.group | format('%10s') %] [% file.filename %] 72 70 <tr><td>[% file.perm %]</td><td>[% file.size | format('%6d') %]</td><td>[% 71 file.user | format('%10s') -%]</td> 72 <td>[%- file.group | format('%10s') %]</td><td>[% file.filename %]</td> 73 <td>[% file.has_content %]</tr> 73 74 [%- IF loop.last -%] 74 </ pre>75 </table> 75 76 [%- END -%] 76 77 [% END %] -
server/trunk/web/root/templates/includes/header.tt
r48 r50 28 28 </p> 29 29 </div> 30 <div style="clear:both"></div> 31 <div style="float: left"> 32 [% FOREACH p = sitepath %] 33 <a href="[% p.path %]">[% p.name | html %]</a> 34 [% IF NOT loop.last %]>[% END %] 35 [% END %] 36 </div> 30 37 <div style="float: right"> 31 Search:<br>32 38 [% INCLUDE 'search/simple_search.tt' %] 33 39 </div>
Note: See TracChangeset
for help on using the changeset viewer.