diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-07-02 18:42:53 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-07-02 18:42:53 +0200 |
commit | 4e7cb403dc2572593a3eef601b14e28a27f2524c (patch) | |
tree | 89bf666a363cce3c923a8f28f128dcc6f3e84d88 /views/prediction.haml | |
parent | 6b8b0a161f492f15c33d4f18e50b604e0fd547bc (diff) |
failed predictions fixed
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index 96385ef..1edb2e8 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -39,9 +39,12 @@ - elsif activity(p[:prediction]) == 'inactive' .inactive = activity(p[:prediction]) + - elsif p[:prediction].is_a?(Float) + .other + = sprintf('%.03g', p[:prediction]) - else - %br - %em= sprintf('%.03g', p[:prediction]) + .other + %em= p[:prediction].to_s - if p[:confidence] %br ( |