diff options
author | gebele <gebele@in-silico.ch> | 2013-04-09 16:50:56 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-04-09 16:50:56 +0200 |
commit | c74da4b41e6413d126ae8d6aa62874627cb14fca (patch) | |
tree | 96e8d75a655704d0a63ab3a51c46ab173c4d37dd /views/prediction.haml | |
parent | b983a694fca22d53054a90ddb894f33be365e5a8 (diff) |
adjusted for services update
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index dd90847..02b3ab1 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -14,21 +14,22 @@ %tbody %tr %td{:id=>"compound"} - %img{:src=>"#{@compound.uri}/image", :alt=>@compound.uri, :width=>"100"} + %img{:src=>"#{@compound.uri}/image", :alt=>"image not available", :width=>"100"} - count=0 - @@predictions.each do |pa| - pa.each do |p| - - p.get - %td{:class => p.data_entries[0][1]} + -# p.get + %td{:class => p.data_entries[0][0]} %b{:class => "title"} = @@prediction_models[count].title %br + - $logger.debug "p.data_entries: #{p.data_entries}" %br = "Result:\n" - %b= p.data_entries[0][1] + %b= p.data_entries[0][0] %br = "Confidence:\n" - = p.data_entries[0][2].round(3) + = p.data_entries[0][1].round(3) %br %a{:href=> "#tabs", :id=>"link#{count}"} %img{:src=>"/images/arrow_down_float.png", :alt=>"arrow"} |