summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-08-18 19:20:28 +0200
committerChristoph Helma <helma@in-silico.ch>2010-08-18 19:20:28 +0200
commit2180bd0303d98ae003341264a44e785d45208873 (patch)
tree7e166b20f07f10425b48f10b4f94defc1e4393f0
parent3469bfb52686ca69193df5a3321f8d25ba601186 (diff)
display of empty predictions fixed
-rw-r--r--helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/helper.rb b/helper.rb
index 9c4b04c..d100c9e 100644
--- a/helper.rb
+++ b/helper.rb
@@ -20,6 +20,8 @@ helpers do
case activity.class.to_s
when /Float/
haml ".other #{sprintf('%.03g', activity)}", :layout => false
+ when /String/
+ haml ".other #{activity.to_s}", :layout => false
else
if activity #true
haml ".active active", :layout => false