diff options
author | gebele <gebele@in-silico.ch> | 2013-03-12 16:01:38 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-12 16:01:38 +0100 |
commit | f18930ce45307f6a000e5aca48ee48d978336038 (patch) | |
tree | 8c8aa22ef55fd86270edebd87a548a278f2f1228 /views/prediction.haml | |
parent | b13b6fb05143947c46159699b0f12f55317889bd (diff) |
added overview
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index 81dd25a..f03b6cb 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -9,7 +9,29 @@ %img{:src=>"/images/arrow_left_float.png", :alt=>"arrow"} %a{:href => to('/predict')} New Prediction - + .overview + %table{:width=>"100%", :cellspacing=>"1", :id=>"overview"} + %thead + %tr + %th= @identifier + %tbody + %tr + %td{:id=>"compound"} + %img{:src=>"#{@compound.uri}/image", :alt=>@compound.uri, :width=>"100px"} + - count=0 + - @predictions.each do |pa| + - pa.each do |p| + - p.get + %td + %b= @prediction_models[count].title + - count+=1 + %br + = "Result:\n" + %b= p.data_entries[0][1] + %br + = "Confidence:\n" + = p.data_entries[0][2].round(3) + %script{:src=>"/javascripts/jquery.tablesorter.min.js"} .results @@ -29,25 +51,6 @@ - pa.each do |p| / get prediction OpenTox::Dataset - p.get - - compound = p.compounds[0] - %table{:class=>"result", :cellspacing=>"1"} - %thead - %tr - %th - = "Compound" - %th - = "Result" - %th - = "Confidence" - %tbody - %tr - %td - %img{:src=>"#{compound.uri}/image", :alt=>compound.uri, :width=>"100px"} - %td - %p= p.data_entries[0][1] - %td - %p= p.data_entries[0][2].round(3) - / prepare dataset for neighbours table - p.data_entries.shift - p.compounds.shift @@ -67,8 +70,6 @@ }); / TODO catch table error if tbody is empty %h3= "Neighbours: " - #tableinfo - hold down shift for multi-sort %table{:id=>"#{count_rs}", :class=>"tablesorter", :cellspacing=>"1"} %thead %tr |