Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
0c9a6c16
Commit
0c9a6c16
authored
5 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add link to PDB ligand in compound card
fix #218
parent
c94478cc
No related branches found
No related tags found
1 merge request
!13
Master
Pipeline
#29527
passed
5 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ippisite/ippidb/templates/compound_db_links.html
+9
-4
9 additions, 4 deletions
ippisite/ippidb/templates/compound_db_links.html
ippisite/ippidb/templates/compound_l_item.html
+1
-1
1 addition, 1 deletion
ippisite/ippidb/templates/compound_l_item.html
with
10 additions
and
5 deletions
ippisite/ippidb/templates/compound_db_links.html
+
9
−
4
View file @
0c9a6c16
{%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id %}
{%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id
or compound.ligand_id
%}
<table
class=
"table mb-0"
>
<tbody>
<tr
class=
"row"
>
<td
scope=
"col"
class=
"col-
4
"
>
<td
scope=
"col"
class=
"col-
3
"
>
{% if compound.pubchem_id %}
<a
href=
"https://pubchem.ncbi.nlm.nih.gov/compound/{{ compound.pubchem_id }}"
target=
"_blank"
><img
src=
"/static/images/Other/Pubchemlogo.png"
style=
"height: 1.5em;"
title=
"PubChem ID: {{ compound.pubchem_id }}"
/></a>
{% endif %}
</td>
<td
scope=
"col"
class=
"col-
4
"
>
<td
scope=
"col"
class=
"col-
3
"
>
{% if compound.chembl_id %}
<a
href=
"https://www.ebi.ac.uk/chembldb/compound/inspect/{{ compound.chembl_id }}"
target=
"_blank"
><img
src=
"/static/images/Other/Chembl_logo.png"
style=
"height: 1.5em;"
title=
"ChEMBL ID: {{ compound.pubchem_id }}"
/></a>
{% endif %}
</td>
<td
scope=
"col"
class=
"col-
4
"
>
<td
scope=
"col"
class=
"col-
3
"
>
{% if compound.chemspider_id %}
<a
href=
"http://www.chemspider.com/Chemical-Structure.{{ compound.chemspider_id}}.html"
target=
"_blank"
><img
src=
"/static/images/Other/ChemSpider_Logo.png"
style=
"height: 1.5em;"
title=
"ChemSpider ID: {{ compound.chemspider_id }}"
/></a>
{% endif %}
</td>
<td
scope=
"col"
class=
"col-3"
>
{% if compound.ligand_id %}
<a
href=
"https://www.rcsb.org/ligand/{{ compound.ligand_id}}"
target=
"_blank"
>
{{compound.ligand_id}}
</a>
{% endif %}
</td>
</tr>
</tbody>
</table>
...
...
This diff is collapsed.
Click to expand it.
ippisite/ippidb/templates/compound_l_item.html
+
1
−
1
View file @
0c9a6c16
...
...
@@ -27,7 +27,7 @@
<li
class=
"list-group-item"
>
InChiKey: {{ compound.inchikey }}
</li>
{% endif %}
</ul>
{%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id %}
{%if compound.pubchem_id or compound.chembl_id or compound.chemspider_id
or compound.ligand_id
%}
<h4
class=
"pt-2 compound_list_title"
>
External links
</h4>
{% include "compound_db_links.html" %}
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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