From 77c207f86f6caa5231b86e8d2df7975a473531eb Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Fri, 20 May 2016 13:00:35 +0200
Subject: [PATCH] [experiments] Only show output of blocks when they are done

---
 beat/web/experiments/templates/experiments/view.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/beat/web/experiments/templates/experiments/view.html b/beat/web/experiments/templates/experiments/view.html
index c6f244407..5ab2bc91f 100644
--- a/beat/web/experiments/templates/experiments/view.html
+++ b/beat/web/experiments/templates/experiments/view.html
@@ -255,6 +255,7 @@
                       </ul>
                     </li>
                     {% endif %}
+                    {% if block.done %}
                     {% if error_report %}
                     <li>Captured Errors (on user code):
                       <pre class="console-output">{{ error_report }}</pre>
@@ -270,6 +271,7 @@
                       <pre class="console-output">{{ block.stderr }}</pre>
                     </li>
                     {% endif %}
+                    {% endif %}{# block.done #}
                   </ul>
                 </div>{# panel body #}
               </div>{# collapse #}
-- 
GitLab