compound_l_item.html 2.19 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">
10
    <h4 class="pt-2">Identifiers</h4>
Hervé  MENAGER's avatar
Hervé MENAGER committed
11
    <ul class="list-group">
12
13
14
      {% if compound.common_name %}
      <li class="list-group-item">Common name: {{ compound.common_name }}</li>
      {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
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 %}
21
22
23
24
25
26
      {% if compound.inchi %}
      <li class="list-group-item">InChi: {{ compound.inchi }}</li>
      {% endif %}
      {% if compound.inchikey %}
      <li class="list-group-item">InChiKey: {{ compound.inchikey }}</li>
      {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
27
    </ul>
28
29
    {%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id %}
    <h4 class="pt-2">External links</h4>
30
    {% include "compound_db_links.html" %}
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
    {% endif %}
    {% if compound.biblio_refs %}
    <h4 class="pt-2">Bibliography</h4>
    <table class="table">
      <thead>
        <tr>
          <th scope="col">Publication</th>
          <th scope="col" title="Compound name in publication">Name</th>
        </tr>
      </thead>
      <tbody>
        {% for biblio_ref in compound.biblio_refs %}
        <tr>
          <td scope="col">{% include "biblio_citation.html" with bibliography=biblio_ref.bibliography%}</td>
          <td scope="col">{{ biblio_ref.compound_name }}</td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
Hervé  MENAGER's avatar
Hervé MENAGER committed
50
    </ul>
51
    {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
52
53
  </div>
</div>