From: Marius Gavrilescu Date: Wed, 21 Jan 2015 19:28:09 +0000 (+0200) Subject: Show "No results yet" in log_entry when job is not done X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=0f67fb9082cb5c513730a28b6a7363268d835f9f;p=gruntmaster-page.git Show "No results yet" in log_entry when job is not done --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index a4c6da1..0ac0c88 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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 { diff --git a/tmpl/log_entry.en b/tmpl/log_entry.en index 2b7b3e3..bac1338 100644 --- a/tmpl/log_entry.en +++ b/tmpl/log_entry.en @@ -20,3 +20,5 @@ + +

No results yet.

\ No newline at end of file