summaryrefslogtreecommitdiff
path: root/views/details.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/details.haml')
-rw-r--r--views/details.haml28
1 files changed, 28 insertions, 0 deletions
diff --git a/views/details.haml b/views/details.haml
new file mode 100644
index 0000000..be4948a
--- /dev/null
+++ b/views/details.haml
@@ -0,0 +1,28 @@
+:javascript
+ $(document).ready(function(){
+ addExternalLinks();
+ });
+%div.modal-body{:style=>"padding:10px;"}
+ %button.close{ :type=>" button", data: { dismiss:"modal"}} ×
+ %h3
+ Names and synonyms:
+ %p= @compound.svg
+ %p
+ %b="SMILES:"
+ %p= @smiles
+ %br
+ %b="InChI:"
+ %p= @inchi
+ %br
+ %b="Names:"
+ %p{:style=>"padding-left:0.5em;"}
+ - if @names !~ /^no names/i
+ = @names.join("; ")
+ - else
+ = @names
+ %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
+ %i (experimental)
+ %br