diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-06-14 15:30:29 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-06-14 15:30:29 +0000 |
commit | 7b7f8e55b9863a513fad33faf96206a818ff19f2 (patch) | |
tree | 59e55234f82edde18ff64f823024307f22c7abdf | |
parent | 58bf485d18fc94e86365e03f24a62cb46977bd50 (diff) |
activity markup fixed
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | helper.rb | 11 |
2 files changed, 10 insertions, 2 deletions
@@ -3,3 +3,4 @@ log/* TODO documentation/ *.*~ +.sass-cache @@ -66,8 +66,15 @@ helpers do when /Float/ haml ".other #{sprintf('%.03g', activity)}", :layout => false when /String/ - haml ".other #{activity.to_s}", :layout => false - else + case activity + when "true" + haml ".active active", :layout => false + when "false" + haml ".inactive inactive", :layout => false + else + haml ".other #{activity.to_s}", :layout => false + end + else if activity #true haml ".active active", :layout => false elsif !activity # false |