summaryrefslogtreecommitdiff
path: root/views/neighbors.haml
diff options
context:
space:
mode:
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