From: Marius Gavrilescu Date: Sat, 28 Mar 2015 15:27:07 +0000 (+0200) Subject: Remove filtered-on columns from job log table X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=489b6d74435de871bf1c0035d068b76f1c5644b5;p=plack-app-gruntmaster.git Remove filtered-on columns from job log table --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index f2b4ec9..2734f77 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -266,6 +266,10 @@ sub process_log { $elem->find('a')->edit_href(sub{s/$/&$str/}) if $str; } $tree->fclass('current')->replace_content("Page $args{current_page} of $args{last_page}"); + + my @detach; + push @detach, $args{args}{$_} ? $tree->fclass($_) : () for qw/problem contest owner/; + $_->detach for @detach; } sub process_st { diff --git a/tmpl/log.en b/tmpl/log.en index efb733b..03bc89d 100644 --- a/tmpl/log.en +++ b/tmpl/log.en @@ -1,5 +1,5 @@ - +
IDProblemContestDateSourceUserResult
IDProblemContestDateSourceUserResult
Job ID