Changeset 110


Ignore:
Timestamp:
12/11/10 06:04:22 (13 years ago)
Author:
nanardon
Message:
  • chat doc as html
Location:
server/trunk/web
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Model/Help/POD.pm

    r102 r110  
    5757} 
    5858 
     59sub 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 
     74sub 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 
    5985 
    6086sub xmlrpc_functions { 
  • server/trunk/web/root/templates/html/help/index.html

    • Property svn:keywords set to Id
    r58 r110  
     1<!-- $Id$ --> 
    12<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 
    13[% c.model('Help::POD').xmlrpc_functions %] 
Note: See TracChangeset for help on using the changeset viewer.