diff options
author | Christoph Helma <helma@in-silico.de> | 2009-07-24 12:40:54 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-07-24 12:40:54 +0200 |
commit | d0836c7afa9007bb44d11e8f4b632eb66f7bb5ba (patch) | |
tree | 22aeecac379be9338840936409a1938e6ccb11cf /views/prediction.haml |
Initial import of lazar-webservice-gui
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/views/prediction.haml b/views/prediction.haml new file mode 100644 index 0000000..5842dfc --- /dev/null +++ b/views/prediction.haml @@ -0,0 +1,29 @@ +→ +%a{ :href => "/#{params[:id]}" } Enter structure +→ Prediction + +%h1 + = @lazar['endpoint'].gsub(/\"|\'/,'').capitalize.gsub(/_/,' ') + of + = params[:name] + +.prediction + %table + %tr + %th Structure + %th + %p Prediction + %p (Confidence) + %th Measured activity + %tr + %td + %img{:src => "http://cactus.nci.nih.gov/chemical/structure/#{URI.encode(@lazar['smiles'])}/image", :alt => "#{@lazar['smiles']}"} + %td + %br= @lazar['prediction'] + %br + ( + = @lazar['confidence'] + ) + %td= @lazar['database_activity'] + +%a{:href => "/neighbors", :lazar => @lazar } Show neighbors |