summaryrefslogtreecommitdiff
path: root/views/feature_table.haml
blob: 4fa927cc03eeb22120037717be914eac2523aa9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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]