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
15174077
Commit
15174077
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add common name and improve id display in compounds list
cf #43 Former-commit-id: c473e21070a65337d1026d6c6ec5b70530cd155a
parent
12922d3b
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_l_item.html
+4
-1
4 additions, 1 deletion
ippisite/ippidb/templates/compound_l_item.html
ippisite/ippidb/templates/compound_v_item.html
+4
-3
4 additions, 3 deletions
ippisite/ippidb/templates/compound_v_item.html
with
8 additions
and
4 deletions
ippisite/ippidb/templates/compound_l_item.html
+
4
−
1
View file @
15174077
<div
class=
"row m-2 border border-info bg-light"
>
<div
class=
"col-sm-3 border-info d-flex justify-content-center align-content-center"
>
<a
href=
"/compounds/{{ compound.id }}"
>
{% include "pubchem_img.html" %}
</a>
<h2
class=
"position-absolute"
style=
"top:0.3em; left:0.3em;"
><span
class=
"badge badge-dark"
><a
href=
"/compounds/{{ compound.id }}"
>
{{ compound.id }}
</a></span></h2>
</div>
<div
class=
"col-sm-9"
>
<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 %}
<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 %}
...
...
This diff is collapsed.
Click to expand it.
ippisite/ippidb/templates/compound_v_item.html
+
4
−
3
View file @
15174077
<div
class=
"p-2"
>
<div
class=
"card border border-info"
>
<div
class=
"card border border-info"
>
<a
href=
"/compounds/{{ compound.id }}"
>
{% include "pubchem_img.html" %}
</a>
<h2
class=
"position-absolute"
style=
"top:0.3em; left:0.3em;"
><span
class=
"badge badge-dark"
><a
href=
"/compounds/{{ compound.id }}"
>
{{ compound.id }}
</a></span></h2>
<div
class=
"card-body"
style=
"overflow:hidden; word-wrap:break-word;"
>
<span
class=
"badge badge-dark"
><a
href=
"/compounds/{{ compound.id }}"
>
{{ compound.id }}
</a></span>
{%if compound.common_name %}
<p
class=
"ml-2"
>
{{ compound.common_name }}
</p>
{% endif %}
<p>
{{ compound.best_pXC50_activity_ppi_family }}
</p>
<p>
Molecular Weight: {{ compound.molecular_weight }} g/mol
</p>
</div>
</div>
</div>
</div>
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