From be9d7e0dd360328d3ef7db77128527c40819cc1c Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 17 Jun 2019 10:21:24 +0000 Subject: add PubChem links for compound cid --- views/prediction.haml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'views/prediction.haml') diff --git a/views/prediction.haml b/views/prediction.haml index 2a315f9..23d27ba 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -25,6 +25,10 @@ %a.btn.btn-link{:href => "#details0", data: { toggle: "modal", remote: to("/prediction/#{@compound.id}/details"), :id=>"link01"}} = embedded_svg(@compound.svg, :title=>"click for details") %p= @compound.smiles + %p + %a{:href=>PUBCHEM_CID_URI+@compound.cid, :rel => "external"} + PubChem + %span.fa.fa-xs.fa-external-link - @model_types = {} - @dbhit = {} - @predictions.each_with_index do |prediction,i| -- cgit v1.2.3