Changeset 110
- Timestamp:
- 12/11/10 06:04:22 (13 years ago)
- Location:
- server/trunk/web
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Model/Help/POD.pm
r102 r110 57 57 } 58 58 59 sub bot_help_html { 60 my ($self, $cmd) = @_; 61 my $botpom = $self->{pom}{'Chat::Cmd'}; 62 foreach my $head1 ($botpom->content) { 63 $head1->title eq 'AVAILLABLE FUNCTIONS' or next; 64 foreach ($head1->content) { 65 $_->title =~ /^\Q$cmd\E( |$)/ or next; 66 my $ppvh = Pod::POM::View::HTML->new; 67 return $_->present($ppvh); 68 } 69 last; 70 } 71 return; 72 } 73 74 sub chat_functions { 75 my ($self) = @_; 76 my $botpom = $self->{pom}{'Chat::Cmd'}; 77 foreach my $head1 ($botpom->content) { 78 $head1->title eq 'AVAILLABLE FUNCTIONS' or next; 79 my $ppvh = Pod::POM::View::HTML->new; 80 return $head1->present($ppvh); 81 } 82 return; 83 } 84 59 85 60 86 sub xmlrpc_functions { -
server/trunk/web/root/templates/html/help/index.html
- Property svn:keywords set to Id
r58 r110 1 <!-- $Id$ --> 1 2 <p><a href="[% c.uri_for('/help', 'xmlrpc') %]">XML::RPC functions doc</a></p> 3 <p><a href="[% c.uri_for('/help', 'chat') %]">Bot help</a></p> -
server/trunk/web/root/templates/html/help/xmlrpc/index.html
- Property svn:keywords set to Id
r62 r110 1 <!-- $Id$ --> 2 1 3 [% c.model('Help::POD').xmlrpc_functions %]
Note: See TracChangeset
for help on using the changeset viewer.