Changeset 82 for server/trunk
- Timestamp:
- 12/05/10 23:59:38 (14 years ago)
- Location:
- server/trunk/web
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Distrib.pm
r76 r82 316 316 317 317 sub rpm_bypkgid :Chained('distrib_view') PathPart('by-pkgid') { 318 my ( $self, $c, $pkgid ) = @_;318 my ( $self, $c, $pkgid, @subpart ) = @_; 319 319 if ($pkgid) { 320 if (@{ $c->forward('/search/bypkgid', [ $c->stash->{dist}, $pkgid ])321 }->{results} ) {322 $c->go('/rpms/rpms', [ $pkgid ]);320 if (@{ $c->forward('/search/bypkgid', 321 [ $c->stash->{dist}, $pkgid ])->{results} } ) { 322 $c->go('/rpms/rpms', [ $pkgid, @subpart ]); 323 323 } else { 324 324 $c->go('/404/index'); -
server/trunk/web/root/static/sophie.css
r76 r82 12 12 padding-left: 1em; 13 13 padding-right: 1em; 14 } 15 16 div.sophie_package_list { 17 background: #F5F5DC; 18 margin-top: 2em; 19 } 20 21 .sophie_package_list h2 { 22 margin-top: 0em; 23 margin-bottom: 0.5em; 24 } 25 .sophie_package_list p { 26 padding-left: 2em; 27 padding-right: 0em; 28 padding-top: 0em; 29 padding-bottom: 0em; 30 margin: 0em; 31 margin-bottom: 0.2em; 14 32 } 15 33 … … 34 52 border: outset; 35 53 } 54 55 -
server/trunk/web/root/templates/html/index.html
r17 r82 1 1 <!-- $Id --> 2 3 [% INCLUDE 'index.tt' %] -
server/trunk/web/root/templates/html/index.tt
r4 r82 1 1 <!-- $Id --> 2 3 [% FOREACH package = c.forward('/search/bydate', [ 4 { 5 src => 1, 6 rows => 10, 7 }, 8 1 ]) %] 9 10 <div class="sophie_package_list"> 11 <h2><a href="[% c.uri_for('/distrib', package.distribution, package.release, 12 package.arch, 'by-pkgid', package.pkgid) %]"> 13 [% package.filename %]</a></h2> 14 <p> 15 [% c.forward('/rpms/queryformat', [ package.pkgid, '%{summary}' ]) | html %] 16 </p> 17 <p>[% package.distribution | html %] - [% package.release | html %] - 18 [% package.arch | html %] / [% package.media | html %] 19 </p> 20 </div> 21 [% END %] -
server/trunk/web/root/templates/includes/header.tt
r71 r82 19 19 20 20 <div id="sophie_header"> 21 <a href="[% c.uri_for('/') %]"> 21 22 <img src="[% c.uri_for('/static', 'sophie.png') -%]" style="float:left"> 23 </a> 22 24 <div style="float:left"> 23 25 <p id="sitename">Sophie</p> -
server/trunk/web/t/controller_Distrib.t
r77 r82 34 34 ok( request("/distrib/$distribution/$release/$arch")->is_success, 'Request should succeed' ); 35 35 ok( request("/distrib/$distribution/$release/$arch/media")->is_success, 'Request should succeed' ); 36 warn "/distrib/$distribution/$release/$arch/media/$media/by-pkgid/$pkgid";37 36 ok( 38 37 request("/distrib/$distribution/$release/$arch/media/$media/by-pkgid/$pkgid") … … 55 54 ->is_success, "request srpms/$rpmname"); 56 55 56 ok( 57 request("/distrib/$distribution/$release/$arch/by-pkgid/$pkgid") 58 ->is_success, "request distrib bypkgid"); 57 59 58 60 done_testing();
Note: See TracChangeset
for help on using the changeset viewer.