Changeset 196
- Timestamp:
- 12/27/10 02:41:54 (13 years ago)
- Location:
- server/trunk/web/lib/Sophie/Controller
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Chat/Cmd.pm
r189 r196 46 46 my $id = $c->forward('/chat/paste', [ 'Bot paste', join("\n", @backup) ]); 47 47 if ($id) { 48 push(@{ $message->{message} }, 'All results avail lable here: ' . $c->uri_for('/chat', $id));48 push(@{ $message->{message} }, 'All results available here: ' . $c->uri_for('/chat', $id)); 49 49 } 50 50 } … … 125 125 =head2 help [cmd] 126 126 127 Return help about command cmd or list avail lable command.127 Return help about command cmd or list available command. 128 128 129 129 =cut … … 133 133 if ($cmd) { 134 134 my @message = grep { /\S+/ } split(/\n/, 135 $c->model('Help::POD')->bot_help_text($cmd) || 'No help avail lable');135 $c->model('Help::POD')->bot_help_text($cmd) || 'No help available'); 136 136 return $c->{stash}->{xmlrpc} = { 137 137 private_reply => 1, … … 142 142 private_reply => 1, 143 143 message => [ 144 'avail lable command:',144 'available command:', 145 145 join(', ', sort grep { $_ !~ /^end$/ } @{ $self->_commands }), 146 146 ], -
server/trunk/web/lib/Sophie/Controller/Distrib.pm
r190 r196 19 19 =head2 distrib.list( [ DISTRIBUTION [, RELEASE [, ARCH ]]] 20 20 21 List content of distrib according arguments given. IE list avail lable21 List content of distrib according arguments given. IE list available 22 22 C<distribution> if no argument is given, list C<release> if C<DISTRIBUTION> is 23 23 given, list C<arch> if both C<DISTRIBUTION> and C<RELEASE> are given. Etc... Up … … 196 196 my ( $self, $c ) = @_; 197 197 198 $c->stash->{metarevisite} = 60; 199 $c->stash->{metatitle} = 'Available Distribution'; 200 push(@{$c->stash->{keywords}}, 'Rpm Distribution'); 198 201 $c->forward('list'); 199 202 } … … 215 218 $c->go('/404/index'); 216 219 } 220 $c->stash->{metarevisite} = 60; 221 $c->stash->{metatitle} = 'Available release for ' . $distribution; 222 push(@{$c->stash->{keywords}}, $distribution); 217 223 $c->forward('list', [ $c->stash->{dist} ] ); 218 224 } … … 229 235 $c->stash->{dist}{distribution} = $distribution; 230 236 $c->stash->{dist}{release} = $release; 237 if (!$c->forward('exists', [ $c->stash->{dist} ])) { 238 $c->go('/404/index'); 239 } 240 $c->stash->{metarevisite} = 60; 241 $c->stash->{metatitle} = 242 'Available architecture for ' . $distribution . ' / ' . $release; 243 push(@{$c->stash->{keywords}}, $distribution, $release); 231 244 $c->forward('list', [ $c->stash->{dist} ] ); 232 245 } … … 238 251 $c->stash->{dist}{release} = $release; 239 252 $c->stash->{dist}{arch} = $arch; 253 if (!$c->forward('exists', [ $c->stash->{dist} ])) { 254 $c->go('/404/index'); 255 } 256 $c->stash->{metarevisite} = 60; 257 $c->stash->{metatitle} = 258 'Available medias for ' . $distribution . ' / ' . $release . ' / ' . $arch; 259 push(@{$c->stash->{keywords}}, $distribution, $release, $arch); 240 260 $c->stash->{distrib} = $c->stash->{dist}; 241 261 } … … 262 282 =head2 distrib.anyrpms( DISTRIB ) 263 283 264 Return a list of packages avail lable for C<DISTRIB>.284 Return a list of packages available for C<DISTRIB>. 265 285 266 286 C<DISTRIB> is a struct with following keys/values: … … 312 332 =head2 distrib.rpms( DISTRIB ) 313 333 314 Return a list of binary packages avail lable for C<DISTRIB>.334 Return a list of binary packages available for C<DISTRIB>. 315 335 316 336 C<DISTRIB> is a struct with following keys/values: … … 365 385 =head2 distrib.srpms( DISTRIB ) 366 386 367 Return a list of sources packages avail lable for C<DISTRIB>.387 Return a list of sources packages available for C<DISTRIB>. 368 388 369 389 C<DISTRIB> is a struct with following keys/values: -
server/trunk/web/lib/Sophie/Controller/Root.pm
r150 r196 70 70 my ( $self, $c ) = @_; 71 71 72 $c->stash->{metarevisite} = 1; 72 73 $c->stash->{xmlrpc} = $c->forward( 73 74 '/search/rpms/bydate', … … 96 97 sub default :Path { 97 98 my ( $self, $c ) = @_; 98 $c->response->body( 'Page not found' ); 99 $c->response->status(404); 99 $c->go('/404/index'); 100 100 } 101 101 -
server/trunk/web/lib/Sophie/Controller/Rpms.pm
r194 r196 228 228 $c->go('/404/index'); 229 229 } 230 $c->stash->{rpms}{info} =230 my $info = $c->stash->{rpms}{info} = 231 231 $c->forward('info', [ $c->stash->{pkgid} ]); 232 233 $c->stash->{metatitle} = sprintf("%s-%s %s", 234 $info->{name}, 235 $info->{evr}, 236 $info->{issrc} ? 'src' : $info->{arch}, 237 ); 238 push(@{ $c->stash->{keywords} }, $info->{name}, $info->{evr}, 239 $info->{issrc} ? 'src' : $info->{arch},); 240 $c->stash->{metarevisit} = 30; 241 232 242 $c->stash->{rpms}{location} = 233 243 $c->forward('location', [ $c->stash->{pkgid} ]);
Note: See TracChangeset
for help on using the changeset viewer.