summaryrefslogtreecommitdiff
path: root/views/neighbors.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/neighbors.haml')
-rw-r--r--views/neighbors.haml24
1 files changed, 8 insertions, 16 deletions
diff --git a/views/neighbors.haml b/views/neighbors.haml
index 2edc3ab..096e432 100644
--- a/views/neighbors.haml
+++ b/views/neighbors.haml
@@ -38,7 +38,7 @@
$("table##{j+1}").tablesorter({
debug: false,
theme: "bootstrap",
- headerTemplate: '{content} {icon}',
+ headerTemplate: '',
widgets: ['columns', 'uitheme', 'stickyHeaders'],
widgetOptions: {
stickyHeaders_attachTo : '.tab-content',
@@ -53,34 +53,26 @@
stickyHeaders_yScroll : null,
stickyHeaders_filteredToTop: true
},
- headers: {0: {sorter: false}, 3: {sorter: false}},
sortList: [[2,1]],
+ headers: {sorter: false},
widthFixed: false
});
});
- if prediction[:neighbors].size > 0
%div.table-responsive
- %table.tablesorter{:id=>"#{j+1}", :style=>"border-style: solid;"}
+ %table{:id=>"#{j+1}", :style=>"border-style: solid;"}
%thead
%tr
- %th{:style =>"vertical-align:middle;"}
+ %th.sorter-false{:style =>"vertical-align:middle;"}
Compound
- %th{:style =>"vertical-align:middle;"}
+ %th.sorter-false{:style =>"vertical-align:middle;"}
Measured Activity
- %th{:style =>"vertical-align:middle;"}
+ %a.btn.glyphicon.glyphicon-info-sign{:href=>"#neighbors", :title=>"Measured Activity", :tabindex=>"0", data: {trigger:"focus", container:"body", toggle:"popover", placement:"left", html:"true", content:"Experimental result(s) from the training dataset."}, :style=>"z-index:auto+10;"}
+ %th.sorter-false{:style =>"vertical-align:middle;"}
Similarity
+ %a.btn.glyphicon.glyphicon-info-sign{:href=>"#neighbors", :title=>"Similarity", :tabindex=>"0", data: {trigger:"focus", container:"body", toggle:"popover", placement:"left", html:"true", content:"<a href=\"https://en.wikipedia.org/wiki/Jaccard_index\">Tanimoto/Jaccard</a> similarity based on <a href=\"https://openbabel.org/docs/dev/FileFormats/MolPrint2D_format.html\">Molprint2D</a> fingerprints."}, :style=>"z-index:auto+10;"}
/ %th{:style =>"vertical-align:middle;"}
/ Supporting Information
- %span
- %tr
- %td
- %td{:style=>"font-size:x-small;padding:0px;"}
- / measured activity
- %a.btn.glyphicon.glyphicon-info-sign{:href=>"#neighbors", :title=>"Measured Activity", :tabindex=>"0", data: {trigger:"focus", container:"body", toggle:"popover", placement:"left", html:"true", content:"Experimental result(s) from the training dataset."}, :style=>"z-index:auto+10;"}
- %td{:style=>"font-size:x-small;padding:0px;"}
- / similarity
- %a.btn.glyphicon.glyphicon-info-sign{:href=>"#neighbors", :title=>"Similarity", :tabindex=>"0", data: {trigger:"focus", container:"body", toggle:"popover", placement:"left", html:"true", content:"<a href=\"https://en.wikipedia.org/wiki/Jaccard_index\">Tanimoto/Jaccard</a> similarity based on <a href=\"https://openbabel.org/docs/dev/FileFormats/MolPrint2D_format.html\">Molprint2D</a> fingerprints."}, :style=>"z-index:auto+10;"}
- / %td
%tbody
- type = @model_types[j]
- unit = @models[j].unit