diff options
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"} |