diff --git a/ippisite/ippidb/static/images/Other/DrugBankLogo.ico b/ippisite/ippidb/static/images/Other/DrugBankLogo.ico new file mode 100644 index 0000000000000000000000000000000000000000..473d82128a8a4a3a22e6f9594b9004f9d0c960fe Binary files /dev/null and b/ippisite/ippidb/static/images/Other/DrugBankLogo.ico differ diff --git a/ippisite/ippidb/static/images/Other/PDBLogo.ico b/ippisite/ippidb/static/images/Other/PDBLogo.ico new file mode 100644 index 0000000000000000000000000000000000000000..b8ac04a0103438ee7bf83a4abded27b396485b71 Binary files /dev/null and b/ippisite/ippidb/static/images/Other/PDBLogo.ico differ diff --git a/ippisite/ippidb/templates/compound_db_links.html b/ippisite/ippidb/templates/compound_db_links.html index c67f97fff9646a543cb18e35c055f524a1755414..07f9d84c09536cd6bee78a663be7c539446291ad 100644 --- a/ippisite/ippidb/templates/compound_db_links.html +++ b/ippisite/ippidb/templates/compound_db_links.html @@ -2,24 +2,29 @@ <table class="table mb-0"> <tbody> <tr class="row"> - <td scope="col" class="col-3"> + <td scope="col" class="col-2"> {% 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-3"> + <td scope="col" class="col-2"> {% 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-3"> + <td scope="col" class="col-2"> {% 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"> + <td scope="col" class="col-2"> {% if compound.ligand_id %} - <a href="https://www.rcsb.org/ligand/{{ compound.ligand_id}}" target="_blank">{{compound.ligand_id}}</a> + <a href="https://www.rcsb.org/ligand/{{ compound.ligand_id}}" target="_blank"><img src="/static/images/Other/PDBLogo.ico" style="height: 1.5em;" title="DrugBank ID: {{ compound.ligand_id }}" /></a> + {% endif %} + </td> + <td scope="col" class="col-2"> + {% if compound.drugbank_id %} + <a href="https://www.drugbank.ca/drugs/{{ compound.drugbank_id}}" target="_blank"><img src="/static/images/Other/DrugBankLogo.ico" style="height: 1.5em;" title="DrugBank ID: {{ compound.drugbank_id }}" /></a> {% endif %} </td> </tr>