compound_l_item.html 1.1 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">
Hervé  MENAGER's avatar
Hervé MENAGER committed
3
    <a href="/compounds/{{ compound.id }}">{% include "pubchem_img.html" %}</a>
Hervé  MENAGER's avatar
Hervé MENAGER committed
4
  </div>
5
  <div class="col-sm-9">
Hervé  MENAGER's avatar
Hervé MENAGER committed
6
    <span class="badge badge-dark"><a href="/compounds/{{ compound.id }}">{{ compound.id }}</a></span>{%if compound.common_name %}<span>Common name: {{ compound.common_name }}</span>{% endif %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
7
8
9
10
11
12
13
14
    <ul class="list-group">
      {% 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>
15
16
    <p>External links</p>
    {% include "compound_db_links.html" %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
17
18
19
20
21
22
23
    <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>