summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-06-27 17:49:58 +0200
committergebele <gebele@in-silico.ch>2013-06-27 17:49:58 +0200
commit8f60b2a316de06cf3878b9fe4ef406bd47bf2ce1 (patch)
treed0ebc35cd0ca1024229e07223b41fb79c0752e32 /views/prediction.haml
parentd530d85556380be317147ed75a18e44cd2fde729 (diff)
several changes for html validation
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index 8ee5cdd..3fd1586 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -1,7 +1,7 @@
.predictions
.back
%h1
- %img{:src=>"/images/arrow_left_float.png", :alt=>"arrow"}
+ %img{:src=>"/images/arrow_left_float.png", :alt=>"<"}
%a{:href => to('/predict')} New Prediction
/ displays all prediction results
@@ -16,10 +16,10 @@
%tr
%td{:id=>"compound"}
%a{:href => to("/prediction/#{CGI.escape(@compound.uri)}/details"), :id=>"linkCompound", :target=>"details_overview"}
- %img{:src=>"#{@compound.uri}/image", :alt=>"Compound image not available", :width=>"100"}
+ %img{:src=>"#{@compound.uri}/image", :alt=>"Compound image not available", :width=>"150", :height=>"150"}
%br
%br
- %img{:src=>"/images/arrow_up_float.png", :alt=>"arrow"}
+ %img{:src=>"/images/arrow_up_float.png", :alt=>"^"}
:javascript
$(function() {
$("a#linkCompound").on('click', function(e) {
@@ -49,6 +49,7 @@
%b Result:
%b{:class => c[0]}
= (c != '' ? c : "No prediction result.")
+ / title must be empty for tooltip
%a{:href=>"#result", :title=>"", :id=>"result"}
%img{:src=>"/images/info_white.png"}
.tooltip{:style=>"font-weight: normal; font-size: 1em; width: 50%; text-align: left;"}
@@ -75,6 +76,7 @@
.confidence
%b Confidence:
= p.data_entries[0][1] != nil ? p.data_entries[0][1].round(3) : ""
+ / title must be empty for tooltip
%a{:href=>"#confidence", :title=>"", :id=>"confidence"}
%img{:src=>"/images/info_white.png"}
.tooltip{:style=>"font-weight: normal; font-size: 1em; width: 50%; text-align: left;"}
@@ -89,7 +91,7 @@
reliable and unreliable predictions.
%br
%a{:href=> "#tabs", :id=>"link#{count}"}
- %img{:src=>"/images/arrow_down_float.png", :alt=>"arrow"}
+ %img{:src=>"/images/arrow_down_float.png", :alt=>"v"}
:javascript
$("a#link#{count}").click(function () {
$(".results").show();