Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
abfbb517
Commit
abfbb517
authored
Nov 18, 2020
by
Hervé MENAGER
Browse files
revise layout of compound identifiers to avoid overflow
parent
85682c86
Changes
3
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/templates/compound_card.html
View file @
abfbb517
...
...
@@ -55,7 +55,7 @@
<div
class=
"row"
style=
"display: inline-block;height:auto; margin-right: 15px; margin-left: 15px;"
>
<div
class=
"tab-content"
id=
"tabContent"
>
<div
class=
"tab-pane fade show active"
id=
"compound"
role=
"tabpanel"
aria-labelledby=
"compound-tab"
>
<div
class=
"card"
>
<div
class=
"card
inner-wrap
"
>
<div
class=
"card-body"
>
{% include "compound_l_item.html" with compound=compound show_detail=True %}
</div>
...
...
ippisite/ippidb/templates/compound_l_item.html
View file @
abfbb517
...
...
@@ -24,16 +24,16 @@
<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>
<li
class=
"list-group-item"
>
Canonical SMILES:
<pre
style=
"overflow: scroll;"
>
{{ compound.canonical_smile }}
</
pre></
li>
{% endif %}
{% if compound.iupac_name %}
<li
class=
"list-group-item"
>
IUPAC name: {{ compound.iupac_name }}
</li>
<li
class=
"list-group-item"
>
IUPAC name:
<pre
style=
"overflow: scroll;"
>
{{ compound.iupac_name }}
</
pre></
li>
{% endif %}
{% if compound.inchi %}
<li
class=
"list-group-item"
>
InChi: {{ compound.inchi }}
</li>
<li
class=
"list-group-item"
>
InChi:
<pre
style=
"overflow: scroll;"
>
{{ compound.inchi }}
</
pre></
li>
{% endif %}
{% if compound.inchikey %}
<li
class=
"list-group-item"
>
InChiKey: {{ compound.inchikey }}
</li>
<li
class=
"list-group-item"
>
InChiKey:
<pre
style=
"overflow: scroll;"
>
{{ compound.inchikey }}
</
pre></
li>
{% endif %}
</ul>
{%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id or compound.ligand_id %}
...
...
ippisite/ippidb/templates/compound_list.html
View file @
abfbb517
...
...
@@ -29,7 +29,7 @@
</div>
<div
class=
"inner-wrap container-fluid "
>
<div
class=
"row
flex-xl-nowrap
"
>
<div
class=
"row"
>
<main
class=
"col-12"
role=
"main"
>
<h1
class=
"page-title"
>
Query compounds
</h1>
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment