Changeset 12634

Show
Ignore:
Timestamp:
05/28/08 23:11:17 (5 years ago)
Author:
tokuhirom
Message:

oops. recent page does not wrapped.

Location:
lang/perl/mobirc/trunk/lib/App/Mobirc/HTTPD
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/mobirc/trunk/lib/App/Mobirc/HTTPD/Controller.pm

    r12633 r12634  
    6161            has_next_page => (scalar(@unread_channels) >= 2 ? 1 : 0), 
    6262            irc_nick      => irc_nick, 
     63            mobile_agent  => $c->req->mobile_agent, 
    6364        }, 
    6465    ); 
  • lang/perl/mobirc/trunk/lib/App/Mobirc/HTTPD/Template/Mobile.pm

    r12633 r12634  
    143143            has_next_page => 1, 
    144144            irc_nick      => 1, 
     145            mobile_agent  => 1, 
    145146        } 
    146147    ); 
    147148    my $channel = $args{channel}; 
    148149 
    149     div { 
    150         class is 'ChannelHeader'; 
    151         a { 
    152             class is 'ChannelName'; 
    153             $channel->name; 
     150    show 'wrapper_mobile', $args{mobile_agent}, sub { 
     151        div { 
     152            class is 'ChannelHeader'; 
     153            a { 
     154                class is 'ChannelName'; 
     155                $channel->name; 
     156            }; 
     157            a { 
     158                href is '/channels/' . uri_escape($channel->name); 
     159                'more...'; 
     160            }; 
    154161        }; 
    155         a { 
    156             href is '/channels/' . uri_escape($channel->name); 
    157             'more...'; 
    158         }; 
    159     }; 
    160  
    161     for my $message (@{$channel->recent_log}) { 
    162         show '../irc_message', $message, $args{irc_nick}; 
    163         br { }; 
    164     } 
    165  
    166     if ($args{has_next_page}) { 
    167         outs_raw ''; 
    168         a { 
    169             href is '/recent'; 
    170             accesskey is '6'; 
    171             'next'; 
    172         } 
    173     } 
    174  
    175     hr { }; 
    176  
    177     show 'go_to_top'; 
     162 
     163        for my $message (@{$channel->recent_log}) { 
     164            show '../irc_message', $message, $args{irc_nick}; 
     165            br { }; 
     166        } 
     167 
     168        if ($args{has_next_page}) { 
     169            outs_raw ''; 
     170            a { 
     171                href is '/recent'; 
     172                accesskey is '6'; 
     173                'next'; 
     174            } 
     175        } 
     176 
     177        hr { }; 
     178 
     179        show 'go_to_top'; 
     180    }; 
    178181}; 
    179182