Changeset 77 for server/trunk
- Timestamp:
- 12/05/10 17:43:24 (14 years ago)
- Location:
- server/trunk/web
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie.pm
r65 r77 24 24 Authentication 25 25 Authorization::Roles 26 Prototype 26 27 /; 27 28 -
server/trunk/web/lib/Sophie/Controller/Chat/Cmd.pm
r63 r77 38 38 message => [ 39 39 'availlable command:', 40 join(', ', @{ $self->_commands }),40 join(', ', grep { $_ !~ /^end$/ } @{ $self->_commands }), 41 41 ], 42 42 } … … 47 47 my ( $self, $c ) = @_; 48 48 return $c->stash->{xmlrpc} = { 49 message => [ 'Sophie ' . $Sophie::VERSION . ' Chat:' . q$Rev$ ],49 message => [ 'Sophie: ' . $Sophie::VERSION . ', Chat ' . q$Rev$ ], 50 50 }; 51 51 } 52 52 53 sub end : Private { 54 my ($self, $c ) = @_; 55 my $reqspec = $c->req->arguments->[0]; 53 56 57 $c->forward('/end'); 58 } 54 59 55 60 =head1 AUTHOR -
server/trunk/web/lib/Sophie/Controller/Explorer.pm
r43 r77 31 31 arch => $c->req->param('arch') || undef, 32 32 }; 33 } else { 34 foreach (qw(distribution release arch)) { 35 $c->req->params->{$_} = $c->session->{explorer}{$_} 36 } 33 37 } 38 34 39 $c->session->{__explorer} = $c->session->{explorer}; 35 40 -
server/trunk/web/lib/Sophie/Controller/Root.pm
r65 r77 54 54 if ($c->action =~ m/^admin\//) { 55 55 if (!($c->user_exists && $c->check_user_roles($c->user, 'Admin'))) { 56 $c->res->redirect($c->uri_for('/login'));56 #$c->go('/login/index'); 57 57 } 58 58 } -
server/trunk/web/root/templates/html/explorer/index.html
r50 r77 1 1 2 <!-- <p> 3 <a href="[% c.uri_for('/explorer') %]">/</a> 4 [% FOREACH p = eachpath %] 5 <a href="[% c.uri_for('/explorer', p.path) %]">[% p.dir | html %]</a> 6 [% END %] 7 </p>--> 2 <form action="[% c.uri_for('/', c.req.path) %]" id="explorer_d"> 3 <span id="distribselect"> 4 [% INCLUDE 'ajax/forms/distribselect.tt' %] 5 </span> 6 <input type="submit" value="Update view..."> 7 </form> 8 [% c.prototype.observe_form('explorer_d', 9 { 10 url => c.uri_for('/ajax/forms/distribselect', { 'ajax' => 1 }), 11 frequency => 1, 12 update => 'distribselect', 13 } 14 ) %] 15 8 16 9 17 <div id="exp_dir" style="float: left; border: outset; width: 30%"> -
server/trunk/web/t/controller_Distrib.t
r57 r77 47 47 request("/distrib/$distribution/$release/$arch/media/$media/by-pkgid/$pkgid/changelog") 48 48 ->is_success, "request media/pkgid/changelog"); 49 50 ok( 51 request("/distrib/$distribution/$release/$arch/rpms/$rpmname") 52 ->is_success, "request rpms/$rpmname"); 53 ok( 54 request("/distrib/$distribution/$release/$arch/srpms/$rpmname") 55 ->is_success, "request srpms/$rpmname"); 56 57 49 58 done_testing();
Note: See TracChangeset
for help on using the changeset viewer.