compound_l_item.html 3.04 KB
Newer Older
1
<div class="row m-2 border border-info bg-light border_card" style="box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2);">
2
  {%if show_detail != True %}
3
  <div class="col-sm-3 border-info d-flex justify-content-center align-content-center {% if compound.replaced_with or compound.is_validated is False %}bg_warning{% endif %}">
4
    <a href="/compounds/{{ compound.id }}">{% include "compound_smiles_draw.html" with id=compound.id smile=compound.canonical_smile %}</a>
5
6
7
    <h2 class="position-absolute" style="top:0.3em; left:0.3em;"><span class="badge badge-light"><a href="/compounds/{{ compound.id }}">{{ compound.id }}</a></span>{% if compound.replaced_with is not None %}
      <span style="font-size: 26px; color:#fa8005; font-size: 75%;">replaced with <a href="/compounds/{{ compound.replaced_with.id }}">{{ compound.replaced_with.id }}</a></span>{% elif compound.is_validated is False %}<span
          style="font-size: 26px; color:#fa8005;">not validated</span>{% endif %}</h2>
8
    {% if compound.tanimoto != None %}
9
    <h2 class="position-absolute" style="top:0.3em; right:0.3em;" title="tanimoto similarity value"><span class="badge badge-light text-warning">{{ compound.tanimoto }}</span></h2>
10
    {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
11
  </div>
12
13
  {% endif %}
  <div class="{%if show_detail != True %}col-sm-9{% else %}col-sm-12{% endif %}">
14
    <h4 class="pt-2 compound_list_title">Identifiers</h4>
Hervé  MENAGER's avatar
Hervé MENAGER committed
15
    <ul class="list-group">
16
17
18
      {% if compound.common_name %}
      <li class="list-group-item">Common name: {{ compound.common_name }}</li>
      {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
19
20
21
22
23
24
      {% 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 %}
25
26
27
28
29
30
      {% 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
31
    </ul>
32
    {%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id or compound.ligand_id %}
33
    <h4 class="pt-2 compound_list_title">External links</h4>
34
    {% include "compound_db_links.html" %}
35
    {% endif %}
36
    {%if show_detail == True and compound.inchikey %}
37
    <h4 class="pt-2 compound_list_title">External search</h4>
38
39
    {% include "compound_dbsearch_links.html" %}
    {% endif %}
40
    {% if compound.biblio_refs %}
41
    <h4 class="pt-2 compound_list_title">Bibliography</h4>
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
    <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
58
    </ul>
59
    {% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
60
61
  </div>
</div>