diff options
author | gebele <gebele@in-silico.ch> | 2013-03-28 17:19:06 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-28 17:19:06 +0100 |
commit | eea0ab2649d998249dc2ea3bba3ecbdd2b3b8a5b (patch) | |
tree | 23b951be401decf3d44360a217b957f16846205e /views | |
parent | de03020a09cdc6438d27916207cab1de554a70f2 (diff) |
colored by result
Diffstat (limited to 'views')
-rw-r--r-- | views/details.haml | 18 | ||||
-rw-r--r-- | views/error.haml | 2 | ||||
-rw-r--r-- | views/layout.haml | 3 | ||||
-rw-r--r-- | views/neighbours.haml | 11 | ||||
-rw-r--r-- | views/prediction.haml | 9 |
5 files changed, 23 insertions, 20 deletions
diff --git a/views/details.haml b/views/details.haml index 38d97fe..48d28bc 100644 --- a/views/details.haml +++ b/views/details.haml @@ -5,14 +5,16 @@ %h2 Details: %img{:src=>"#{@compound_uri.uri}/image", :alt=>@compound_uri.uri, :width=>"100px"} - %p + %br + %b SMILES: - = @smiles - - %p + %p= @smiles + %br + %b // TODO handle OpenTox::ResourceNotFoundError Names: - = @names - - %p - = @inchi + %p= @names + %br + %b + InChI: + %p= @inchi diff --git a/views/error.haml b/views/error.haml index 9aced43..61b436f 100644 --- a/views/error.haml +++ b/views/error.haml @@ -4,5 +4,5 @@ %img{:src=>"/images/arrow_left_float.png", :alt=>"arrow"} %a{:href => to('/predict')} New Prediction %error - = @error_report.to_s + = @error_report diff --git a/views/layout.haml b/views/layout.haml index 2269a34..7c05190 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -17,7 +17,8 @@ .logo %a{:href=> "http://www.in-silico.ch/", :rel=> "external"} %img{:src=>"/images/ist_logo.png"} - %h1 Lazar Toxicity Predictions + %h1 Lazar Toxicity Predictions + %hr .content = yield diff --git a/views/neighbours.haml b/views/neighbours.haml index eec7d39..a593e7b 100644 --- a/views/neighbours.haml +++ b/views/neighbours.haml @@ -41,7 +41,7 @@ $(document).ready(function(){ $("table##{count_rs}").tablesorter({ //debug: true, - widgets: ['zebra'], + //widgets: ['zebra'], headers: {0: {sorter: false},3: {sorter: false}}, sortList: [[2,0]] }); @@ -65,12 +65,11 @@ %tr %td %img{:src=>"#{neighbour_compound.uri}/image", :alt=>neighbour_compound.uri, :width=>"100px"} - %td + %td{:class => p.data_entries[count][0]} = p.data_entries[count][0] - %td - = p.data_entries[count][3].round(3) - - %td + %td{:class => p.data_entries[count][0]} + = p.data_entries[count][3].round(3) + %td{:class => p.data_entries[count][0]} %a{:href => to("/prediction/#{CGI.escape(neighbour_compound.uri)}/details"), :id=>"link#{count_rs}#{count}", :target=>"details"} %img{:src=>"/images/arrow_right_float.png", :alt=>"arrow"} :javascript diff --git a/views/prediction.haml b/views/prediction.haml index ed51d09..dd90847 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -14,15 +14,16 @@ %tbody %tr %td{:id=>"compound"} - %img{:src=>"#{@compound.uri}/image", :alt=>@compound.uri, :width=>"100px"} + %img{:src=>"#{@compound.uri}/image", :alt=>@compound.uri, :width=>"100"} - count=0 - @@predictions.each do |pa| - pa.each do |p| - p.get - %td - %b= @@prediction_models[count].title - + %td{:class => p.data_entries[0][1]} + %b{:class => "title"} + = @@prediction_models[count].title %br + %br = "Result:\n" %b= p.data_entries[0][1] %br |