From 5bfe30382936b417e111c02b4acf24757f52a852 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Wed, 2 May 2018 23:03:07 +0200
Subject: [PATCH] add uniprot links in compound card + minor reformats

(closes #54)


Former-commit-id: 1f84ff0d08778a7b8253f814cd311172d254c8ef
---
 ippisite/ippidb/templates/compound_card.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ippisite/ippidb/templates/compound_card.html b/ippisite/ippidb/templates/compound_card.html
index 11f7f311..e3ecb6d5 100644
--- a/ippisite/ippidb/templates/compound_card.html
+++ b/ippisite/ippidb/templates/compound_card.html
@@ -206,8 +206,8 @@
                         {% for car in compound.compoundactivityresult_set.all %}
                         <tr {% if car.is_best %}class="table-primary"{% endif %}>
                           <td>{% include "biblio_simplelink.html" with bibliography=car.test_activity_description.biblio %}</td>
-                          <td>{{ car.test_activity_description.protein_domain_bound_complex.name }} {{ car.test_activity_description.protein_domain_bound_complex.protein.uniprot_id }}</td>
-                          <td>{{ car.test_activity_description.protein_domain_partner_complex.name }} {{ car.test_activity_description.protein_domain_partner_complex.protein.uniprot_id }}</td>
+                          <td>{{ car.test_activity_description.protein_domain_bound_complex.name }} <br /><a href="http://www.uniprot.org/uniprot/{{ car.test_activity_description.protein_domain_bound_complex.protein.uniprot_id }}" target="_blank">{{ car.test_activity_description.protein_domain_bound_complex.protein.uniprot_id }}</a></td>
+                          <td>{{ car.test_activity_description.protein_domain_partner_complex.name }} <br /><a href="http://www.uniprot.org/uniprot/{{ car.test_activity_description.protein_domain_partner_complex.protein.uniprot_id }}" target="_blank">{{ car.test_activity_description.protein_domain_bound_complex.protein.uniprot_id }}</a></td>
                           <td>{{ car.test_activity_description.get_test_type_display }}</td>
                           <td>{{ car.test_activity_description.test_name }}</td>
                           <td>{{ car.test_activity_description.cell_line.name }}</td>
-- 
GitLab