diff options
author | gebele <gebele@in-silico.ch> | 2013-06-24 14:24:40 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-24 14:24:40 +0200 |
commit | 76d196bbda378c29ff9c35c96d85b47dc8dfa3cc (patch) | |
tree | fe7d1897c2ec44f822f9c70b317eb016e0adc9c5 /views/neighbors.haml | |
parent | 6f58b77765518f31219e59fca01df5b8ee80701e (diff) |
several minor changes: result,names
Diffstat (limited to 'views/neighbors.haml')
-rw-r--r-- | views/neighbors.haml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/views/neighbors.haml b/views/neighbors.haml index 01ffe29..027ac50 100644 --- a/views/neighbors.haml +++ b/views/neighbors.haml @@ -87,14 +87,19 @@ - p.compounds.each do |neighbor_compound| / prevent conversion of nil - c = p.data_entries[count][2] != nil ? p.data_entries[count][2] : '' + - case c + - when /(0|false)/ + - c = "non-carcinogen" + - when /(1|true)/ + - c = "carcinogen" %tr %td.compound %img{:src=>"#{neighbor_compound.uri}/image", :alt=>"", :width=>"100px"} - %td{:class => "c"+c} - = p.data_entries[count][2] - %td{:class => "c"+c} - = p.data_entries[count][3] != nil ? p.data_entries[count][3].round(3) : "No prediction result" - %td{:class => "c"+c} + %td{:class => c[0]} + = c #p.data_entries[count][2] + %td{:class => c[0]} + = p.data_entries[count][3] != nil ? p.data_entries[count][3].round(3) : "Not enough similar compounds in training dataset." + %td %a{:href => to("/prediction/#{CGI.escape(neighbor_compound.uri)}/details"), :id=>"link#{count_rs}#{count}", :target=>"details"} %img{:src=>"/images/arrow_right_float.png", :alt=>"arrow"} :javascript |