summaryrefslogtreecommitdiff
path: root/views/feature_table.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-08-06 13:30:15 +0200
committerChristoph Helma <helma@in-silico.ch>2010-08-06 13:30:15 +0200
commit4315a4ef2bfc625dc2f3ed69dd6c90ddb0dd5593 (patch)
tree82d7520fba83cb2d5652ae7f61767cb112e72f94 /views/feature_table.haml
parent05ed7ad074f48cf36b60740665c1a0962ff0a55d (diff)
lazar details implemented
Diffstat (limited to 'views/feature_table.haml')
-rw-r--r--views/feature_table.haml28
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]
+