summaryrefslogtreecommitdiff
path: root/views/details.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2019-09-03 13:45:36 +0200
committerChristoph Helma <helma@in-silico.ch>2019-09-03 13:45:36 +0200
commitd1032e4f40d9fbb212e85e0db4f0ecd2e8ac9a88 (patch)
tree48922d60d750839dacd5d0a4a6e50ea3fe68da63 /views/details.haml
parent5bb4c24c6cfc1ddfae14eb9543b283baae2d75be (diff)
parenta84d9eabf1b921086a688f81df28b0f21ba4df19 (diff)
development merged, git links in FAQ.md fixed1.4.0
Diffstat (limited to 'views/details.haml')
-rw-r--r--views/details.haml12
1 files changed, 10 insertions, 2 deletions
diff --git a/views/details.haml b/views/details.haml
index be4948a..abf7518 100644
--- a/views/details.haml
+++ b/views/details.haml
@@ -6,7 +6,7 @@
%button.close{ :type=>" button", data: { dismiss:"modal"}} &times;
%h3
Names and synonyms:
- %p= @compound.svg
+ %p= embedded_svg(@compound.svg, :title=>"x")
%p
%b="SMILES:"
%p= @smiles
@@ -14,6 +14,11 @@
%b="InChI:"
%p= @inchi
%br
+ - cid = @compound.cid
+ - if cid
+ %b="CID:"
+ %p= cid
+ %br
%b="Names:"
%p{:style=>"padding-left:0.5em;"}
- if @names !~ /^no names/i
@@ -23,6 +28,9 @@
%hr
%p{:style=>"padding-left:0.5em;"}
/ pubchem link
- %a.btn.btn-primary{:href=>"http://aop.in-silico.ch/", :title=>"Link opens in new window.", :alt=>"pubchem read across", :rel=>"external"} PubChem read across
+ - if cid
+ %a.btn.btn-primary{:href=>"http://aop.in-silico.ch/cid/#{cid}", :title=>"Link opens in new window.", :alt=>"pubchem read across", :rel=>"external"} PubChem read across
+ - else
+ %a.btn.btn-primary{:href=>"http://aop.in-silico.ch/", :title=>"Link opens in new window.", :alt=>"pubchem read across", :rel=>"external"} PubChem read across
%i (experimental)
%br