Skip to content
Snippets Groups Projects
Commit edbee76e authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

refactor table list for compounds - part 2, #43 WIP

Former-commit-id: 9299a59e2247117c330f66353b10e14a2c65ce43
parent 3b3f913e
No related branches found
No related tags found
No related merge requests found
......@@ -91,25 +91,7 @@
{% include "compound_l_item.html" with compound=compound %}
{% endfor %}
{% else %}
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Common name</th>
<th scope="col">Molecular weight</th>
<th scope="col">AlogP</th>
<th scope="col">PDB ligand</th>
<th scope="col">MDDR phase</th>
<th scope="col">Available tests</th>
<th scope="col">Available publications</th>
</tr>
</thead>
<tbody>
{% for compound in compounds %}
{% include "compound_t_item.html" with compound=compound %}
{% endfor %}
</tbody>
</table>
{% include "compound_t_list.html" with compounds=compounds %}
{% endif %}
</div>
{% else %}
......
<tr>
<th scope="col"><span class="badge badge-dark"><a href="/compound/{{ compound.id }}">{{ compound.id }}</a></span></th>
<th scope="col">{{ compound.common_name|default_if_none:"-" }}</th>
<th scope="col">{{ compound.molecular_weight}} g/mol</th>
<th scope="col">{{ compound.a_log_p }}</th>
<th scope="col">{% for pdb_id in compound.compound_action_pdb_ids %}{{ pdb_id }}{% endfor %}</th>
<th scope="col"> ? </th>
<th scope="col"> ? </th>
<th scope="col">{{ compound.biblio_refs|length }}</th>
</tr>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Common name</th>
<th scope="col">Molecular weight</th>
<th scope="col">AlogP</th>
<th scope="col">PDB ligand</th>
<th scope="col">MDDR phase</th>
<th scope="col">Available tests</th>
<th scope="col">Available publications</th>
</tr>
</thead>
<tbody>
{% for compound in compounds %}
<tr>
<th scope="col"><span class="badge badge-dark"><a href="/compound/{{ compound.id }}">{{ compound.id }}</a></span></th>
<th scope="col">{{ compound.common_name|default_if_none:"-" }}</th>
<th scope="col">{{ compound.molecular_weight}} g/mol</th>
<th scope="col">{{ compound.a_log_p }}</th>
<th scope="col">{% for pdb_id in compound.compound_action_pdb_ids %}{{ pdb_id }}{% endfor %}</th>
<th scope="col"> ? </th>
<th scope="col"> ? </th>
<th scope="col">{{ compound.biblio_refs|length }}</th>
</tr>
{% endfor %}
</tbody>
</table>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment