diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-11-24 13:10:52 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-11-24 13:10:52 +0100 |
commit | 1952b3ed877e4791429512def5bd7102e4ba7a99 (patch) | |
tree | 624d3fde40b7abd2ae902e9635b1a1dcfa5df2b0 /views/model.haml | |
parent | 99e3566a11a1d51df91a6d3d016e8ec260920020 (diff) |
opentox-ruby-api-wrapper renamed to opentox-ruby
Diffstat (limited to 'views/model.haml')
-rw-r--r-- | views/model.haml | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/views/model.haml b/views/model.haml index 0c8ea8f..d34079d 100644 --- a/views/model.haml +++ b/views/model.haml @@ -8,7 +8,6 @@ %div{:id => "model_#{model.id}"} %h2 = model.name - .model %dl %dt Status: @@ -20,24 +19,25 @@ ) %dt Started: %dd= model.created_at.strftime("%m/%d/%Y - %I:%M:%S%p") - %dt Training compounds: - %dd= model.nr_compounds - %dt Warnings: - - if model.warnings == '' - %dd - - - else + - if model.nr_compounds + %dt Training compounds: + %dd= model.nr_compounds + - if model.error_messages + %dt Errors: + %dd= model.error_messages + - if model.warnings + %dt Warnings: %a{:href => "#", :id => "show_model_#{model.id}_warnings"} show %dd{:id => "model_#{model.id}_warnings", :style => "display: none;"}= model.warnings - - - if model.status == 'Completed' - %dt Algorithm: - %dd - = toggle_link("#lazar_description","lazar") + %dt Algorithm: + %dd= toggle_link("#lazar_description","lazar") + - if model.type %dt Type: %dd= toggle_link("##{model.type}","#{model.type}") - %dt Descriptors: - %dd - %a{:href => 'http://www.maunz.de/libfminer2-bbrc-doc/'} Fminer backbone refinement classes + %dt Descriptors: + %dd + %a{:href => 'http://www.maunz.de/libfminer2-bbrc-doc/'} Fminer backbone refinement classes + - if model.training_dataset %dt Training dataset: %dd %a{:href => "#{model.training_dataset}.xls"} Excel sheet @@ -46,18 +46,22 @@ -#%em (experts) , %a{:href => "#{model.training_dataset}.yaml"} YAML %em (experts) + - if model.feature_dataset %dt Feature dataset: %dd -#%a{:href => "#{model.feature_dataset}.rdf"} RDF/XML -#, + %a{:href => "#{model.feature_dataset}.xls"} Excel sheet + , %a{:href => "#{model.feature_dataset}.yaml"} YAML - %em (experts, dataset too large for Excel) + %em (experts) + - if model.uri %dt Model: %dd -#%a{:href => "#{model.uri}.rdf"} RDF/XML -#, - - unless model.validation_qmrf_uri.nil? + - if model.validation_qmrf_uri %a{:href => File.join(model.validation_qmrf_uri,"editor")} QMRF Editor, %a{:href => "#{model.uri}.yaml"} YAML %em (experts, models cannot be represented in Excel) - = haml :validation, :locals=>{:model=>model}, :layout => false + = haml :validation, :locals=>{:model=>model}, :layout => false |