From 489b6d74435de871bf1c0035d068b76f1c5644b5 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 28 Mar 2015 17:27:07 +0200 Subject: [PATCH] Remove filtered-on columns from job log table --- lib/Plack/App/Gruntmaster/HTML.pm | 4 ++++ tmpl/log.en | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2