From 3ae04ef7fac5bbc20f464c1cb29c8ffebc820dce Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 11 Sep 2013 17:50:13 +0200 Subject: added ote logo --- views/prediction.haml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'views/prediction.haml') diff --git a/views/prediction.haml b/views/prediction.haml index c4ef460..7f94a2e 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -44,14 +44,23 @@ - c = "non-carcinogen" - when /(1|true)/ - c = "carcinogen" + - else + - c = Array.new + - c[0] = p.data_entries[0][0].round(3) %td %b{:class => "title"} = @@prediction_models[count].title.split(" ").first %br + %br + / classification, regression + %b Type: %br %b Result: %b{:class => c[0]} - = (c != '' ? c : "No prediction result.") + - if c.class == String + = (c != '' ? c : "No prediction result.") + - else + = (c[0] != '' ? c[0] : "No prediction result.") / title must be empty for tooltip %a{:href=>"#result", :title=>"", :id=>"result"} %img{:src=>"/images/info_white.png"} -- cgit v1.2.3