From 53321ba549175f7ffb40a5d5515a0047f369203d Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 15 Mar 2013 13:47:38 +0100 Subject: version with iframes for neighbours and details view --- views/prediction.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'views/prediction.haml') diff --git a/views/prediction.haml b/views/prediction.haml index 623275d..47a4dfa 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -21,7 +21,7 @@ - p.get %td %b= @@prediction_models[count].title - - count+=1 + %br = "Result:\n" %b= p.data_entries[0][1] @@ -29,11 +29,11 @@ = "Confidence:\n" = p.data_entries[0][2].round(3) %br - %a{:href=> to("/prediction/neighbours"), :target=> "neighbours"} + %a{:href=> to("/prediction/neighbours/#{count}"), :target=> "neighbours"} %img{:src=>"/images/arrow_down_float.png", :alt=>"arrow"} + - count+=1 - - %iframe{:name=>"neighbours", :width=>"50%", :height=>"400px", :style=>"float:left; border:0px"} - %iframe{:name=>"details", :width=>"50%", :height=>"400px", :style=>"border:0px"} + %iframe{:id=>"neighbours", :name=>"neighbours", :width=>"50%", :height=>"400px", :style=>"float:left; border:0px"} + %iframe{:id=>"details", :name=>"details", :width=>"50%", :height=>"400px", :style=>"border:0px"} -- cgit v1.2.3