]> iEval git - plack-app-gruntmaster.git/commitdiff
Merge branch 'master' into newmc
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 28 Mar 2015 15:27:11 +0000 (17:27 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 28 Mar 2015 15:27:11 +0000 (17:27 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/log.en

index b4a080042f20dd55e3215e045e374e8432aa5e95..7b343b22bb45c15ba067e792f0c611b7e9c8adf5 100644 (file)
@@ -268,6 +268,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.025577 seconds and 4 git commands to generate.