From 6697948a6c925b165ab5d4dda87849a5f450003a Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 2 Feb 2016 10:55:28 +0100 Subject: final adjustments, issue tracker link --- views/layout.haml | 2 ++ views/prediction.haml | 14 ++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'views') diff --git a/views/layout.haml b/views/layout.haml index 12d908f..148e431 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -33,6 +33,8 @@ %img.media-object{:src=>"/images/enm_logo.png", :width=>"200px", :heigth=>"200px", :alt=>"logo_enm", :style=>"margin:0 3em 0 2em;"} %div.container-fluid + Problems, bugs, ideas for improvements ? Please report at our + %a{:href => 'https://github.com/enanomapper/nano-lazar/issues', :rel => "external"} issue tracker :javascript $(document).ready(function(){ $("#back-top").hide(); diff --git a/views/prediction.haml b/views/prediction.haml index 8a7c28d..d22960b 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -35,7 +35,9 @@ %th Composition %th.tox - Toxicity + Toxicity + %br + Net cell association [mL/ug(Mg)] - @input.each do |key| %th.physchem = key[0].gsub(/\sMean/, '') @@ -77,19 +79,19 @@ - if @prediction[:prediction] - @prediction[:prediction].each do |k,v| %h5 Prediction - %p= k.split.drop(1).join(" ")[1..-2] + -#%p= k.split.drop(1).join(" ")[1..-2] - if v == nil - %p 0 + %p not available - else %h5= v.round(5) - if @prediction[:match] - @prediction[:match].values[0]["tox"].each do |k,v| %hr %h5 Measurement - %p= k.split.drop(1).join(" ")[1..-2] + -#%p= k.split.drop(1).join(" ")[1..-2] %p= v.round(3) - if !@prediction[:prediction] && !@prediction[:match] - %h5 x + %h5 not available / physchem - if @prediction[:match] - sorted = {} @@ -138,7 +140,7 @@ %td.tox - neighbor["tox"].each do |k,v| %h5 Measurement - %p= k.split.drop(1).join(" ")[1..-2] + -#%p= k.split.drop(1).join(" ")[1..-2] %p= v.round(3) / Physchem - sorted = {} -- cgit v1.2.3