summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-03-16 11:05:40 +0100
committerChristoph Helma <helma@in-silico.de>2010-03-16 11:05:40 +0100
commit0c83e4ad2990075384788eb959bb799c49a098fe (patch)
treeb60c9afdac6a96d628ff6190aa05403bb881ff98 /views/prediction.haml
parentabee4c335778247b290a343730e76e6676b9dac4 (diff)
toxcreate adapted for new representation
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml5
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)})"