Show "No results yet" in log_entry when job is not done
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 21 Jan 2015 19:28:09 +0000 (21:28 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 21 Jan 2015 19:28:09 +0000 (21:28 +0200)
lib/Plack/App/Gruntmaster/HTML.pm
tmpl/log_entry.en

index a4c6da16782fa8004baa9288daba83271f4a72bf..0ac0c88b6fe17667139cd11983aaf8c751a84985 100644 (file)
@@ -214,6 +214,7 @@ sub process_log_entry {
                $tr->fclass('result_text')->attr(class => "r$data->{result}")
        };
        $args{results} ? $tree->fid('results')->find('tbody')->find('tr')->iter3($args{results}, $iter) : $tree->fid('results')->detach;
+       $tree->fid('no_results')->detach if $tree->fid('results') || $tree->fid('errors');
 }
 
 sub process_log {
index 2b7b3e3b4ce54d037728b15ff115e9c9b8345ccb..bac1338146374ccfac05caffc8394dcc629824a1 100644 (file)
@@ -20,3 +20,5 @@
 <tr><td class="id"><td class="result_text"><td class="time">
 </table>
 </div>
+
+<h2 id="no_results">No results yet.</h2>
\ No newline at end of file
This page took 0.01138 seconds and 4 git commands to generate.