diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-11 18:36:53 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-11 18:36:53 +0900 |
commit | 28189812b3be1864c36cf13292520c059a91a7da (patch) | |
tree | 869ea068ac28c2cdaa0e436d7d436f30a54e13eb | |
parent | 72f5a6f67dccc6b51ce01a3fc5475fca7800b7b6 (diff) | |
download | poe-28189812b3be1864c36cf13292520c059a91a7da.tar.gz |
don't show exit status on error
-rw-r--r-- | app/views/results/_result.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/results/_result.html.haml b/app/views/results/_result.html.haml index c17d58d..9a6ebc0 100644 --- a/app/views/results/_result.html.haml +++ b/app/views/results/_result.html.haml @@ -9,9 +9,10 @@ %tr %th Result %td= result.errored? ? "Error" : result.timedout? ? "Time limit exceeded" : result.failed? ? "Runtime error" : "Success" - %tr - %th Exit code - %td= result.status + - unless result.status.negative? + %tr + %th Exit code + %td= result.status - else .result-item.panel.panel-default{"data-compiler-id": compiler.id, "data-id": result && result.id, "data-status": (result ? "running" : "notran")} .panel-heading= compiler |