diff options
author | Christoph Helma <helma@in-silico.de> | 2010-03-16 11:05:40 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-03-16 11:05:40 +0100 |
commit | 0c83e4ad2990075384788eb959bb799c49a098fe (patch) | |
tree | b60c9afdac6a96d628ff6190aa05403bb881ff98 /views/prediction.haml | |
parent | abee4c335778247b290a343730e76e6676b9dac4 (diff) |
toxcreate adapted for new representation
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index 7912ada..96fe54d 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -11,9 +11,8 @@ - @predictions.each do |p| %td %b - =# p[:title].gsub(/_/,' ') + ":" = p[:title] + ":" - - if p[:measured_activities].size > 0 + - if p[:measured_activities] %br - p[:measured_activities].each do |a| - if activity(a) == 'active' @@ -32,7 +31,7 @@ = activity(p[:prediction]) - else %br - %em not available + %em= p[:prediction] - if p[:confidence] %br = "(confidence: #{sprintf('%.03f', p[:confidence].to_f.abs)})" |