diff options
author | gebele <gebele@in-silico.ch> | 2013-03-13 12:46:04 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-13 12:46:04 +0100 |
commit | c609abf8157210a75790b54ef53569c07bf851d4 (patch) | |
tree | 36c3fd47adbffce0870299ab43f3b3fabf65be70 /views/prediction.haml | |
parent | 048bdaeac889d5450c8ff3bbf215dfb44457b72d (diff) |
details in 4th column
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index 0ab2c82..ef928fa 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -36,8 +36,7 @@ %script{:src=>"/javascripts/jquery.tablesorter.min.js"} - .results - + .results #tabs %ul - count_m = 0 @@ -65,7 +64,7 @@ debug: true, widgets: ['zebra'], // disable first column - headers: {0: {sorter: false}}, + headers: {0: {sorter: false},3: {sorter: false}}, // presort similarity asc sortList: [[2,0]] }); @@ -76,11 +75,13 @@ %thead %tr %th - = "Compound" + Compound + %th + Measured Activity %th - = "Measured Activity" + Similarity %th - = "Similarity" + Details -#%tbody - count = 0 - p.compounds.each do |neighbour_compound| @@ -88,5 +89,21 @@ %td %img{:src=>"#{neighbour_compound.uri}/image", :alt=>neighbour_compound.uri, :width=>"100px"} %td= p.data_entries[count][0] - %td= p.data_entries[count][3].round(3) + %td + = p.data_entries[count][3].round(3) + + %td + %a{:href => "#info_#{count}", :id=>"linkNeighbour#{count}"} + %img{:src=>"/images/arrow_right_float.png", :alt=>"arrow"} + #info{:id=>"#{count}", :style => "display: none;"} + info names smiles inchies Eigenschaften physic chem Verwandte links zu anderen Datenbanken info names smiles inchies Eigenschaften physic chem Verwandte links zu anderen Datenbanken info names smiles inchies Eigenschaften physic chem Verwandte links zu anderen Datenbanken info names smiles inchies Eigenschaften physic chem Verwandte links zu anderen Datenbanken info names smiles inchies Eigenschaften physic chem Verwandte links zu anderen Datenbanken + + :javascript + $("a#linkNeighbour#{count}").click(function () { + $("#info_#{count}").toggle(); + document.location = document.location + "#" + "linkNeighbour#{count}"; + }); + - count += 1 + + |