Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
edbee76e
Commit
edbee76e
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
refactor table list for compounds - part 2, #43 WIP
Former-commit-id: 9299a59e2247117c330f66353b10e14a2c65ce43
parent
3b3f913e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ippisite/ippidb/templates/compound_list.html
+1
-19
1 addition, 19 deletions
ippisite/ippidb/templates/compound_list.html
ippisite/ippidb/templates/compound_t_list.html
+28
-10
28 additions, 10 deletions
ippisite/ippidb/templates/compound_t_list.html
with
29 additions
and
29 deletions
ippisite/ippidb/templates/compound_list.html
+
1
−
19
View file @
edbee76e
...
...
@@ -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 %}
...
...
This diff is collapsed.
Click to expand it.
ippisite/ippidb/templates/compound_t_list.html
+
28
−
10
View file @
edbee76e
<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>
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment