compound_l_item.html 1.49 KB
Newer Older
Hervé  MENAGER's avatar
Hervé MENAGER committed
1
<div class="row m-2 border border-info bg-light">
2
  <div class="col-sm-3 border-info d-flex justify-content-center align-content-center">
3
    <a href="/compounds/{{ compound.id }}">{% include "compound_smiles_draw.html" with id=compound.id smile=compound.canonical_smile %}</a>
4
    <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>
5
    {% if compound.tanimoto != None %}
6
7
    <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 %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
8
  </div>
9
  <div class="col-sm-9">
Hervé  MENAGER's avatar
Hervé MENAGER committed
10
    <ul class="list-group">
11
12
13
      {% if compound.common_name %}
      <li class="list-group-item">Common name: {{ compound.common_name }}</li>
      {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
14
15
16
17
18
19
20
      {% if compound.canonical_smile %}
      <li class="list-group-item">Canonical SMILES: {{ compound.canonical_smile }}</li>
      {% endif %}
      {% if compound.iupac_name %}
      <li class="list-group-item">IUPAC name: {{ compound.iupac_name }}</li>
      {% endif %}
    </ul>
21
22
    <p>External links</p>
    {% include "compound_db_links.html" %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
23
24
25
26
27
28
29
    <ul class="list-group">
      {% for biblio_ref in compound.biblio_refs %}
      <li class="list-group-item">Mentionned in {% include "biblio_citation.html" with bibliography=biblio_ref.bibliography%} as <i>{{ biblio_ref.compound_name }}</i></li>
      {% endfor %}
    </ul>
  </div>
</div>