summaryrefslogtreecommitdiff
path: root/views/neighbors.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-09-26 20:07:32 +0200
committergebele <gebele@in-silico.ch>2013-09-26 20:07:32 +0200
commit1ab8ed01b72ba501f175b0b1ef87ed62bbec8844 (patch)
tree0704aa45cbca8bd139e6360150626e5faac5c6d1 /views/neighbors.haml
parent13ffab048630cc30a4af9e9113c1843ae5af0a09 (diff)
small edits for new model names
Diffstat (limited to 'views/neighbors.haml')
-rw-r--r--views/neighbors.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/neighbors.haml b/views/neighbors.haml
index 39f6272..df03b85 100644
--- a/views/neighbors.haml
+++ b/views/neighbors.haml
@@ -12,7 +12,7 @@
/ each endpoint becomes a tab head ;
- @prediction_models.each do |m|
- count_m += 1
- - m_title = m.title.split(" ").first
+ - m_title = m.title.split("_").last(2)[0]
%li
%a{:href => "#results_#{count_m}", :id => "link#{m_title}"}
= m_title
@@ -90,9 +90,9 @@
/ prevent conversion of nil
- c = p.data_entries[count][2] != nil ? p.data_entries[count][2] : ''
- case c
- - when /(0|false)/
+ - when /(0|false|inactive)/
- c = "non-carcinogen"
- - when /(1|true)/
+ - when /(1|true|active)/
- c = "carcinogen"
- else
- c = Array.new