diff options
author | gebele <gebele@in-silico.ch> | 2019-07-18 13:55:40 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-07-18 13:55:40 +0000 |
commit | 87fc7e8997306f7edb74d5282ad337c5c3c48b1c (patch) | |
tree | 8f6ede95232138acfb136165614906fab8b789e9 /views/prediction.haml | |
parent | e0985405e2fdb0fe8c4740ccb256d3ac2d1fd5be (diff) |
removed awstats;model details without separation buttons;restructured details table;adjust info with warning;reordered positive first
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index fe1e487..3631f10 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -13,10 +13,11 @@ %a.btn.btn-link{:href => "#details0", data: { toggle: "modal", remote: to("/prediction/#{@compound.id}/details"), :id=>"link01"}} = embedded_svg(@compound.svg, :title=>"click for details") %p= @compound.smiles - %p - %a{:href=>PUBCHEM_CID_URI+@compound.cid, :rel => "external"} - PubChem - %span.fa.fa-xs.fa-external-link + - if @compound.cid && @compound.cid != "0" + %p + %a{:href=>PUBCHEM_CID_URI+@compound.cid, :rel => "external"} + PubChem + %span.fa.fa-xs.fa-external-link - @model_types = {} - @dbhit = {} - @predictions.each_with_index do |prediction,i| @@ -93,25 +94,25 @@ %b Confidence: %br = prediction[:confidence] - + / show warnings and info %p - - if !prediction[:info].blank? + - unless @dbhit[i] || prediction[:info].blank? %b Info: %br %p=prediction[:info].sub(/\'.*\'/,"").sub(/,/, ",<br>") - - if !prediction[:warnings].blank? + - unless prediction[:warnings].blank? - warning = prediction[:warnings].last %b Warnings: %br %p=warning#.sub(/,/, ",<br>") - else %br - - if !prediction[:info].blank? + - unless @dbhit[i] || prediction[:info].blank? %b Info: %br %p=prediction[:info].sub(/\'.*\'/,"").sub(/,/, ",<br>") - - if !prediction[:warnings].blank? + - unless prediction[:warnings].blank? - warning = prediction[:warnings].last %b Warnings: %br |