]> iEval git - plack-app-gruntmaster.git/commitdiff
Remove filtered-on columns from job log table
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 28 Mar 2015 15:27:07 +0000 (17:27 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 28 Mar 2015 15:27:07 +0000 (17:27 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/log.en

index f2b4ec9cead19e8e98af996ff35a3e0f4f8bc83f..2734f77cf3655233527f934aac24b5ac065a641d 100644 (file)
@@ -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 {
index efb733b534c48af27a307509593e29c8c374ef40..03bc89d713de306e3ee1bfa492bee44f5026fcbf 100644 (file)
@@ -1,5 +1,5 @@
 <table class="table table-striped table-condensed">
-<thead><tr><th>ID<th>Problem<th>Contest<th>Date<th>Source<th>User<th>Result</thead>
+<thead><tr><th>ID<th class="problem">Problem<th class="contest">Contest<th>Date<th>Source<th class="owner">User<th>Result</thead>
 
 <tbody>
 <tr><td class="id"><a href="/log/id">Job ID</a>
This page took 0.028078 seconds and 4 git commands to generate.