diff options
Diffstat (limited to 'views/feature_table.haml')
-rw-r--r-- | views/feature_table.haml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/views/feature_table.haml b/views/feature_table.haml new file mode 100644 index 0000000..4fa927c --- /dev/null +++ b/views/feature_table.haml @@ -0,0 +1,28 @@ +%table + - unless features[:activating].empty? + %tr + %th + activating + ( + %a{:href => "http://www.daylight.com/dayhtml/doc/theory/theory.smarts.html"} SMARTS + ) + %th p value + - if features[:activating] + - features[:activating].sort{|a,b| b[:p_value] <=> a[:p_value] }.each do |f| + %tr + %td= f[:smarts] + %td= f[:p_value] + - unless features[:deactivating].empty? + %tr + %th + deactivating + ( + %a{:href => "http://www.daylight.com/dayhtml/doc/theory/theory.smarts.html"} SMARTS + ) + %th p value + - if features[:deactivating] + - features[:deactivating].sort{|a,b| b[:p_value] <=> a[:p_value] }.each do |f| + %tr + %td= f[:smarts] + %td= f[:p_value] + |