From 0309994bc91efc5045824e6dd9d7f8ee7393422d Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Mon, 23 May 2016 11:24:52 +0200
Subject: [PATCH] [experiments] Only display outputs if the block was not
 cancelled

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

diff --git a/beat/web/experiments/templates/experiments/view.html b/beat/web/experiments/templates/experiments/view.html
index 5ab2bc91f..48311ed76 100644
--- a/beat/web/experiments/templates/experiments/view.html
+++ b/beat/web/experiments/templates/experiments/view.html
@@ -236,7 +236,7 @@
                     </ul>
                     -->
                     {% endcomment %}
-                    {% if core_block.nb_slots  and core_block.nb_slots > 1 %}
+                    {% if core_block.nb_slots and core_block.nb_slots > 1 %}
                     <li>Slots: {{ core_block.nb_slots }} (speed-up achieved: {{ block.speed_up_real|floatformat:-1 }}x)</li>
                     <li>Maximum speed-up achievable: {{ block.speed_up_maximal|floatformat:-1 }}x</li>
                     {% else %}
@@ -255,7 +255,7 @@
                       </ul>
                     </li>
                     {% endif %}
-                    {% if block.done %}
+                    {% if block.done and block_status != 'Cancelled' %}
                     {% if error_report %}
                     <li>Captured Errors (on user code):
                       <pre class="console-output">{{ error_report }}</pre>
-- 
GitLab