Commit df7a69e9 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

show tanimoto even if is 0 in compounds query results


Former-commit-id: f88f7d811f35b689bab47cae3efca7020287d3ba
parent c00c103c
......@@ -2,7 +2,7 @@
<div class="col-sm-3 border-info d-flex justify-content-center align-content-center">
<a href="/compounds/{{ compound.id }}">{% include "compound_smiles_draw.html" with id=compound.id smile=compound.canonical_smile %}</a>
<h2 class="position-absolute" style="top:0.3em; left:0.3em;"><span class="badge badge-dark"><a href="/compounds/{{ compound.id }}">{{ compound.id }}</a></span></h2>
{% if compound.tanimoto %}
{% if compound.tanimoto != None %}
<h2 class="position-absolute" style="top:0.3em; right:0.3em;" title="tanimoto similarity value"><span class="badge badge-dark text-warning">{{ compound.tanimoto }}</span></h2>
{% endif %}
</div>
......
......@@ -29,7 +29,7 @@
<tbody>
{% for compound in compounds %}
<tr>
{% if compound.tanimoto %}
{% if compound.tanimoto != None %}
<td title="tanimoto similarity value">{{ compound.tanimoto }}</td>
{% endif %}
<td scope="col"><span class="badge badge-dark"><a href="/compounds/{{ compound.id }}">{{ compound.id }}</a></span></td>
......
......@@ -2,7 +2,7 @@
<div class="card border border-info">
<a href="/compounds/{{ compound.id }}">{% include "compound_smiles_draw.html" with id=compound.id smile=compound.canonical_smile %}</a>
<h2 class="position-absolute" style="top:0.3em; left:0.3em;"><span class="badge badge-dark"><a href="/compounds/{{ compound.id }}">{{ compound.id }}</a></span></h2>
{% if compound.tanimoto %}
{% if compound.tanimoto != None %}
<h2 class="position-absolute" style="top:0.3em; right:0.3em;" title="tanimoto similarity value"><span class="badge badge-dark text-warning">{{ compound.tanimoto }}</span></h2>
{% endif %}
<div class="card-body" style="overflow:hidden; word-wrap:break-word;">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment