From dbf513ce686f1c0db1ed2d6af1fa96c86352e709 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Sat, 28 Jul 2012 15:22:53 +0200 Subject: initial commit --- views/index.haml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 views/index.haml (limited to 'views') diff --git a/views/index.haml b/views/index.haml new file mode 100644 index 0000000..c8481c3 --- /dev/null +++ b/views/index.haml @@ -0,0 +1,47 @@ +!!! 5 += @compound.neighbors.size +%table + %tr + %th Structure + %th Properties + %th Targets + %th Assays + - @compound.neighbors.each do |neighbor| + %tr + %td + = neighbor.name + %img{:src => neighbor.image} + %dl + %dt Similarity + %dd + = neighbor.tanimoto + %td + %dl + - neighbor.properties.each do |p,v| + %dt + = p + %dd + = v + %td + %dl + %dt Similarity + %dd + = neighbor.target_similarity @compound.neighbors.first + %dt Targets + %dd + = neighbor.targets.uniq + %dt Total + %dd + = neighbor.targets.size + neighbor.non_targets.size + %td + %dl + %dt Similarity + %dd + = neighbor.assay_similarity @compound.neighbors.first + %dt Active + %dd + = neighbor.active_assays.collect{|a| a["Assay Name"]} + %dt Total + %dd + = neighbor.active_assays.size + neighbor.inactive_assays.size + =# neighbor.inactive_assays.collect{|a| a["Assay Name"]} -- cgit v1.2.3