From b8d1ce9a588534e1a92bd4461c94b97b6269291c Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 21 Apr 2016 08:18:51 +0000 Subject: removed brackets --- views/prediction.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/prediction.haml b/views/prediction.haml index 5265504..d8312bb 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -50,13 +50,13 @@ = (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."}} + %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" %b 95% Prediction interval: - - interval = prediction[:prediction_interval].nil? ? "[ - - ]" : prediction[:prediction_interval].collect{|i| i.round(2)} + - interval = prediction[:prediction_interval].nil? ? " - - " : prediction[:prediction_interval].collect{|i| i.round(2)} %br - = "[#{interval[0]} - #{interval[1]}] (#{unit}), [#{'%.2e' % @compound.mmol_to_mg(interval[0])} - #{'%.2e' % @compound.mmol_to_mg(interval[1])}] (mg/L)" + = "#{interval[0]} - #{interval[1]} (#{unit}), #{'%.2e' % @compound.mmol_to_mg(interval[0])} - #{'%.2e' % @compound.mmol_to_mg(interval[1])} (mg/L)" / prediction intervall popover %a.btn.glyphicon.glyphicon-info-sign{:href=>"#", :title=>"Prediction intervall", :tabindex=>"0", data: {trigger:"focus", toggle:"popover", placement:"left", html:"true", content:"An estimate of prediction uncertainty. The \"real\" value should be with 95% probability within the prediction interval."}} - else -- cgit v1.2.3