diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-12-07 11:42:12 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-12-07 11:42:12 +0100 |
commit | 17e783b5d159f205f0de59c6c522f5de5b8c9a6e (patch) | |
tree | 0b9f3602770ec9388b109b8c83e832a61216878a /views/targets.haml | |
parent | c38f9f2e4c2dec4ef163c6c76d64f5dbf4974a5a (diff) |
working version without proxy
Diffstat (limited to 'views/targets.haml')
-rw-r--r-- | views/targets.haml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/views/targets.haml b/views/targets.haml index 1a172ff..9622abd 100644 --- a/views/targets.haml +++ b/views/targets.haml @@ -1,6 +1,11 @@ -%ul - - @assays.each do |assay| - %li - %a{:href => "/aid/#{assay["AID"]}"} #{assay['Target Name']} - Target GI: - = assay['Target GI'] +%dl + - @assays.collect{|a| [a["Target Name"],a["Target GI"]]}.uniq.sort{|a,b| a[0] <=> b[0]}.each do |target| + %dt= target.first + %dd + Target GeneID: + = target.last + %dd + Assay IDs: + - @assays.select{|a| a["Target GI"] == target.last}.each do |assay| + %a{:href => "http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=#{assay["AID"]}"} #{assay['AID']} + |