summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-03-15 13:47:38 +0100
committergebele <gebele@in-silico.ch>2013-03-15 13:47:38 +0100
commit53321ba549175f7ffb40a5d5515a0047f369203d (patch)
tree06bfc29319c2b34122fe15c9a25f684fa89405ad /views/prediction.haml
parentd5649c3bb4eb992c722c24c7fa96a912df2cbf8f (diff)
version with iframes for neighbours and details view
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml10
1 files changed, 5 insertions, 5 deletions
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"}