From 592f509ec22dd3f742ee530c7b1692b1af05e528 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 24 Mar 2011 13:57:07 +0100 Subject: external links with rel='external' for w3c compliance --- views/lazar.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'views/lazar.haml') diff --git a/views/lazar.haml b/views/lazar.haml index 3de7400..d52a645 100644 --- a/views/lazar.haml +++ b/views/lazar.haml @@ -36,13 +36,13 @@ %li= toggle_link("#fragments","Significant fragments") -# This does not work, ask nina/vedrin -# %li - %a{:href => "http://ambit.uni-plovdiv.bg:8080/ambit2/query/structure/?search=#{@compound.smiles}"} Ambit data + %a{:href => "http://ambit.uni-plovdiv.bg:8080/ambit2/query/structure/?search=#{@compound.smiles}", :rel => "external"} Ambit data -# %li - %a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+@compound.inchi+'"[InChI]')}"} PubChem data - (external) + %a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+@compound.inchi+'"[InChI]')}", :rel => "external"} PubChem data + (external) -# %li - %a{:href => "http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced&inchi=#{URI.encode @compound.inchi}"} ToxNet data - -#http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced®no=000143157 + %a{:href => "http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced&inchi=#{URI.encode @compound.inchi}", :rel => "external"} ToxNet data + -#http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced®no=000143157 %tr#names{ :style => "display: none;" } %td{:colspan => '4'} -- cgit v1.2.3 From 0559ff4159064118292ddc9ef0dbb032afbb6aef Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 30 Mar 2011 12:57:57 +0200 Subject: icon for external links --- views/lazar.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/lazar.haml') diff --git a/views/lazar.haml b/views/lazar.haml index d52a645..deb0c18 100644 --- a/views/lazar.haml +++ b/views/lazar.haml @@ -39,10 +39,10 @@ %a{:href => "http://ambit.uni-plovdiv.bg:8080/ambit2/query/structure/?search=#{@compound.smiles}", :rel => "external"} Ambit data -# %li %a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+@compound.inchi+'"[InChI]')}", :rel => "external"} PubChem data - (external) + (external) -# %li %a{:href => "http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced&inchi=#{URI.encode @compound.inchi}", :rel => "external"} ToxNet data - -#http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced®no=000143157 + -#http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced®no=000143157 %tr#names{ :style => "display: none;" } %td{:colspan => '4'} -- cgit v1.2.3 From 3430ce8d28846a405d403b2c4a03bcab5a11f9e6 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 4 Apr 2011 18:44:44 +0200 Subject: Selection of AMBIT datasets added --- views/lazar.haml | 116 +++++++++++++++++++++++++++---------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) (limited to 'views/lazar.haml') diff --git a/views/lazar.haml b/views/lazar.haml index deb0c18..6ae6b20 100644 --- a/views/lazar.haml +++ b/views/lazar.haml @@ -1,59 +1,59 @@ -%p= link_to "New prediction", "/predict" -.lazar-predictions - - -# explanations - = haml :lazar_algorithm, :layout => false - = haml :confidence, :layout => false - = haml :similarity, :layout => false - = haml :significant_fragments, :layout => false - = haml :training_data, :layout => false - - %a{:name => "prediction"} - %table - %thead - %tr - %th= @prediction.title - %th= toggle_link("#lazar_algorithm","Prediction") - %th= toggle_link("#confidence","Confidence") - %th Supporting information - - %tr - -# %td - %img{:src => @compound.to_image_uri, :alt => @compound.to_smiles} - %td.image= compound_image(@compound,@prediction.descriptors(@compound)) - %td= activity_markup(@prediction.value(@compound)) - %td= sprintf('%.03g', @prediction.confidence(@compound)) - -#%td= @prediction.confidence(@compound) - %td - %ul - %li - %a{:href => "#prediction", :id => "show_names"} Names and synonyms - :javascript - $("a#show_names").click(function () { - $("#compound_names").load("#{File.join("/compound",@compound.inchi)}"); - $("tr#names").toggle(); - }); - %li= toggle_link("#fragments","Significant fragments") - -# This does not work, ask nina/vedrin - -# %li - %a{:href => "http://ambit.uni-plovdiv.bg:8080/ambit2/query/structure/?search=#{@compound.smiles}", :rel => "external"} Ambit data - -# %li - %a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+@compound.inchi+'"[InChI]')}", :rel => "external"} PubChem data +%p= link_to "New prediction", "/predict" +.lazar-predictions + + -# explanations + = haml :lazar_algorithm, :layout => false + = haml :confidence, :layout => false + = haml :similarity, :layout => false + = haml :significant_fragments, :layout => false + = haml :training_data, :layout => false + + %a{:name => "prediction"} + %table + %thead + %tr + %th= @prediction.title + %th= toggle_link("#lazar_algorithm","Prediction") + %th= toggle_link("#confidence","Confidence") + %th Supporting information + + %tr + -# %td + %img{:src => @compound.to_image_uri, :alt => @compound.to_smiles} + %td.image= compound_image(@compound,@prediction.descriptors(@compound)) + %td= activity_markup(@prediction.value(@compound)) + %td= sprintf('%.03g', @prediction.confidence(@compound)) + -#%td= @prediction.confidence(@compound) + %td + %ul + %li + %a{:href => "#prediction", :id => "show_names"} Names and synonyms + :javascript + $("a#show_names").click(function () { + $("#compound_names").load("#{File.join("/compound",@compound.inchi)}"); + $("tr#names").toggle(); + }); + %li= toggle_link("#fragments","Significant fragments") + -# This does not work, ask nina/vedrin + -# %li + %a{:href => "http://ambit.uni-plovdiv.bg:8080/ambit2/query/structure/?search=#{@compound.smiles}", :rel => "external"} Ambit data + -# %li + %a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+@compound.inchi+'"[InChI]')}", :rel => "external"} PubChem data (external) - -# %li - %a{:href => "http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced&inchi=#{URI.encode @compound.inchi}", :rel => "external"} ToxNet data - -#http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced®no=000143157 - - %tr#names{ :style => "display: none;" } - %td{:colspan => '4'} - %a{:name => 'names'} - = hide_link('#names') - #compound_names - %tr#fragments{ :style => "display: none;" } - %td{:colspan => '4'} - = hide_link('#fragments') - = haml :feature_table, :locals => {:features => sort(@prediction.descriptors(@compound))}, :layout => false - - %tbody#neighbors - = haml :neighbors, :locals => {:neighbors => @prediction.neighbors(@compound), :page => @page}, :layout => false - + -# %li + %a{:href => "http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced&inchi=#{URI.encode @compound.inchi}", :rel => "external"} ToxNet data + -#http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced®no=000143157 + + %tr#names{ :style => "display: none;" } + %td{:colspan => '4'} + %a{:name => 'names'} + = hide_link('#names') + #compound_names + %tr#fragments{ :style => "display: none;" } + %td{:colspan => '4'} + = hide_link('#fragments') + = haml :feature_table, :locals => {:features => sort(@prediction.descriptors(@compound))}, :layout => false + + %tbody#neighbors + = haml :neighbors, :locals => {:neighbors => @prediction.neighbors(@compound), :page => @page}, :layout => false + -- cgit v1.2.3 From b19f254428c46061a88dbe11b0298a48abf85648 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 16 May 2011 14:46:00 +0000 Subject: haml format error fixed in views/lazar.haml --- views/lazar.haml | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'views/lazar.haml') diff --git a/views/lazar.haml b/views/lazar.haml index 6ae6b20..3f1d030 100644 --- a/views/lazar.haml +++ b/views/lazar.haml @@ -18,12 +18,9 @@ %th Supporting information %tr - -# %td - %img{:src => @compound.to_image_uri, :alt => @compound.to_smiles} %td.image= compound_image(@compound,@prediction.descriptors(@compound)) %td= activity_markup(@prediction.value(@compound)) %td= sprintf('%.03g', @prediction.confidence(@compound)) - -#%td= @prediction.confidence(@compound) %td %ul %li @@ -34,15 +31,6 @@ $("tr#names").toggle(); }); %li= toggle_link("#fragments","Significant fragments") - -# This does not work, ask nina/vedrin - -# %li - %a{:href => "http://ambit.uni-plovdiv.bg:8080/ambit2/query/structure/?search=#{@compound.smiles}", :rel => "external"} Ambit data - -# %li - %a{:href => "http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=PureSearch&db=pccompound&term=#{URI.encode('"'+@compound.inchi+'"[InChI]')}", :rel => "external"} PubChem data - (external) - -# %li - %a{:href => "http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced&inchi=#{URI.encode @compound.inchi}", :rel => "external"} ToxNet data - -#http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?result=advanced®no=000143157 %tr#names{ :style => "display: none;" } %td{:colspan => '4'} -- cgit v1.2.3