diff options
author | gebele <gebele@in-silico.ch> | 2013-11-15 15:51:35 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-11-15 15:51:35 +0100 |
commit | 3c943fbb4de62a0b0042786edfe42b4bb3a20c36 (patch) | |
tree | 05f8a494ddb701e304c9349cf695a86beb175b7b /views/predict.haml | |
parent | 8162484d7aa31ee5f76e72c2b195e3a9ac9e9531 (diff) |
models sorted by endpoint
Diffstat (limited to 'views/predict.haml')
-rw-r--r-- | views/predict.haml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/views/predict.haml b/views/predict.haml index 317acd6..4272a38 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -74,13 +74,13 @@ #models - @detail_count = 0 - // TODO order models by echa endpoint - #endpoint - @models.each do |model| + - model_endpoint = model.type.select{|endpoint| endpoint =~ /Endpoint/}.to_s - model_title = model.title.split("_").last(2)[0] - model_t = model.title.gsub("_", " ") - - case model_title - - when /LC50/i + - case model_endpoint + - when /fish/i + %br %b Acute toxicity to fish (lethality): - @detail_count +=1 %div{:id => model_title} @@ -112,7 +112,7 @@ Detailed report link /%p Number of predictions: integer /%p Correct predictions: % - - when /hamster/i + - when /Carcinogenicity/i %br %b Carcinogenicity: - @detail_count +=1 @@ -146,7 +146,7 @@ /%p Number of predictions: integer /%p Correct predictions: % %br - - when /mutagenicity/i + - when /Mutagenicity/i %br %b Mutagenicity: - @detail_count +=1 |