compound_table_item.html 1.04 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="/compound/{{ 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
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
    <ul class="list-group">
      {% if compound.common_name %}
      <li class="list-group-item">Common name: {{ compound.common_name }}</li>
      {% endif %}
      {% 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>
    <p>in bibliography</p>
    <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>
23
    {% include "compound_db_links.html" %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
24
25
  </div>
</div>