summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2019-06-17 10:21:24 +0000
committergebele <gebele@in-silico.ch>2019-06-17 10:21:24 +0000
commitbe9d7e0dd360328d3ef7db77128527c40819cc1c (patch)
treecf84693f2fb27650f1ad9182edb644d40395942d /views/prediction.haml
parent2f2a4c5e3f319d523424f365d034017152eb1504 (diff)
add PubChem links for compound cid
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml4
1 files changed, 4 insertions, 0 deletions
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|