From 0f67fb9082cb5c513730a28b6a7363268d835f9f Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 21 Jan 2015 21:28:09 +0200 Subject: [PATCH] Show "No results yet" in log_entry when job is not done --- lib/Plack/App/Gruntmaster/HTML.pm | 1 + tmpl/log_entry.en | 2 ++ 2 files changed, 3 insertions(+) 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 -- 2.39.2