summaryrefslogtreecommitdiff
path: root/views/details.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2018-05-28 09:12:06 +0000
committergebele <gebele@in-silico.ch>2018-05-28 09:12:06 +0000
commit82f8396b1e2fcf72e584ea746c4d4c675b95284f (patch)
treef11cf907ede4b9023182812c863c251897ec26f7 /views/details.haml
parentfa1137da0ed761f37d38b0cdd6002cb07fda99b9 (diff)
default link color;neighbors and batch details modal;table word wrap
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"}} &times;
+ %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