diff options
| author | Darkelarious <darkelarious@333networks.com> | 2022-08-26 13:26:33 +0200 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2022-08-26 13:26:33 +0200 |
| commit | 8ec88b566c5f3edc65f25adc0716c3493689cd08 (patch) | |
| tree | dbbde9a694f6b4052ec39a45f0010955c668da3c /lib/MasterWebInterface/Handler/Games.pm | |
| parent | c5f43733533fe9b5708bd065a12c5fac86ccebed (diff) | |
| download | WebInterface-Perl-8ec88b566c5f3edc65f25adc0716c3493689cd08.tar.gz WebInterface-Perl-8ec88b566c5f3edc65f25adc0716c3493689cd08.zip | |
advanced filtering
Diffstat (limited to 'lib/MasterWebInterface/Handler/Games.pm')
| -rwxr-xr-x | lib/MasterWebInterface/Handler/Games.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/MasterWebInterface/Handler/Games.pm b/lib/MasterWebInterface/Handler/Games.pm index affebf6..cec7ab1 100755 --- a/lib/MasterWebInterface/Handler/Games.pm +++ b/lib/MasterWebInterface/Handler/Games.pm @@ -6,8 +6,8 @@ use TUWF ':html'; use Exporter 'import'; TUWF::register( - qr{g} => \&gamelist, - qr{g(|/all)} => \&gamelist, + qr{g} => \&gamelist, + qr{g/all} => \&gamelist, ); # @@ -35,11 +35,10 @@ sub gamelist search => $f->{q}, results => $f->{r}, all => $all, - ); $self->htmlHeader(title => "Browse Games"); - $self->htmlSearchBox(title => "Games", action => "/g/all", sel => 'g', fq => $f->{q}); + $self->htmlFilterBox(title => "Games", action => "/g/all", sel => 'g', fq => $f->{q}); # # game list @@ -100,7 +99,7 @@ sub gamelist # number of beacons / servers td title => ($l->{num_direct} // 0) . " / " . ($l->{num_total} // 0), - $l->{num_direct} // 0; + $l->{num_total} // 0; end; }, ); |
