From 512458e2489c8cc12a9d539d8895c1802d7b081a Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 20 Apr 2016 14:12:03 +0000 Subject: adopted changes from CH on the master branch --- views/neighbors.haml | 4 +++- views/prediction.haml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/neighbors.haml b/views/neighbors.haml index c94331a..3014255 100644 --- a/views/neighbors.haml +++ b/views/neighbors.haml @@ -75,9 +75,11 @@ %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;"} - %a.btn.glyphicon.glyphicon-info-sign{:href=>"#neighbors", :title=>"Similarity", :tabindex=>"0", data: {trigger:"focus", container:"body", toggle:"popover", placement:"left", html:"true", content:"LAZAR calculates activity specific similarities based on the presence of statistically significant fragments. This procedure will "}, :style=>"z-index:auto+10;"} + / 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:"Tanimoto/Jaccard similarity based on Molprint2D fingerprints."}, :style=>"z-index:auto+10;"} / %td %tbody - type = @model_types[j] diff --git a/views/prediction.haml b/views/prediction.haml index 89c33d6..4a2877e 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -49,6 +49,7 @@ %b Prediction: = (type == "Regression") ? "#{'%.2e' % prediction[:value]} (#{unit}) | #{'%.2e' % @compound.mmol_to_mg(prediction[:value])} #{(unit == "mmol/L") ? "(mg/L)" : "(mg/kg_bw/day)"}" : prediction[:value] / tabindex=0 seems the best fix for FF|S browsers on OSX better than trigger="click focus" which ends up in double click for FF. + / prediction popover %a.btn.glyphicon.glyphicon-info-sign{:href=>"#", :title=>"Prediction", :tabindex=>"0", data: {trigger:"focus", toggle:"popover", placement:"left", html:"true", content:"LAZAR calculates searches the training dataset for similar compounds (neighbors) and calculates the prediction from their measured activities. LAZAR calculates predictions using Please keep in mind that predictions are based on the measured activities of neighbors."}} %br - if type == "Regression" -- cgit v1.2.3