compound_l_item.html 2.45 KB
Newer Older
Hervé  MENAGER's avatar
Hervé MENAGER committed
1
<div class="row m-2 border border-info bg-light">
2
  {%if show_detail != True %}
3
  <div class="col-sm-3 border-info d-flex justify-content-center align-content-center">
4
    <a href="/compounds/{{ compound.id }}">{% include "compound_smiles_draw.html" with id=compound.id smile=compound.canonical_smile %}</a>
5
    <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>
6
    {% if compound.tanimoto != None %}
7
8
    <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
9
  </div>
10
11
  {% endif %}
  <div class="{%if show_detail != True %}col-sm-9{% else %}col-sm-12{% endif %}">
12
    <h4 class="pt-2">Identifiers</h4>
Hervé  MENAGER's avatar
Hervé MENAGER committed
13
    <ul class="list-group">
14
15
16
      {% if compound.common_name %}
      <li class="list-group-item">Common name: {{ compound.common_name }}</li>
      {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
17
18
19
20
21
22
      {% 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 %}
23
24
25
26
27
28
      {% 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
29
    </ul>
30
31
    {%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id %}
    <h4 class="pt-2">External links</h4>
32
    {% include "compound_db_links.html" %}
33
    {% endif %}
34
35
36
37
    {%if show_detail == True and compound.inchikey %}
    <h4 class="pt-2">External search</h4>
    {% include "compound_dbsearch_links.html" %}
    {% endif %}
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
    {% 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
56
    </ul>
57
    {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
58
59
  </div>
</div>