From 5a3be4190688bc8240327930b3e953b09ecc9d9e Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 28 May 2019 14:25:52 +0000 Subject: before clean up --- views/details.haml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'views/details.haml') 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"}} × %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 -- cgit v1.2.3