diff --git a/ippisite/ippidb/templates/compound_list.html b/ippisite/ippidb/templates/compound_list.html index 2565a0415b37f5a8767d0a22ef47e1bdd1f4b1d3..d54e74c642ffcef151178c59210212ee735a466d 100644 --- a/ippisite/ippidb/templates/compound_list.html +++ b/ippisite/ippidb/templates/compound_list.html @@ -34,6 +34,11 @@ {% if selected_ppis or selected_diseases or selected_taxonomies or selected_boundcomplexes or molecular_weight != molecular_weight_max or a_log_p != a_log_p_max or nb_donor_h != nb_donor_h_max or pubs != pubs_min %} <span> - filters: + {% if selected_families %} + {% for selected in selected_families %} + {% include "selected_badge.html" with param_name="family" selected=selected %} + {% endfor %} + {% endif %} {% if selected_ppis %} {% for selected in selected_ppis %} {% include "selected_badge.html" with param_name="ppi" selected=selected %} diff --git a/ippisite/ippidb/templates/compound_t_list.html b/ippisite/ippidb/templates/compound_t_list.html index c84cacbbe76bc31e673d70d1c6f98be537f5bd0a..325874ddab254a8d2be2578d40a20c9d0a6752c9 100644 --- a/ippisite/ippidb/templates/compound_t_list.html +++ b/ippisite/ippidb/templates/compound_t_list.html @@ -14,6 +14,7 @@ {% include "compound_t_colhead.html" with col_id="tpsa" col_name="TPSA (Ã…2)" %} {% include "compound_t_colhead.html" with col_id="nb_rotatable_bonds" col_name="number of rotatable bonds" %} {% include "compound_t_colhead.html" with col_id="nb_aromatic_sssr" col_name="number of aromatic SSSR" %} + {% include "compound_t_colhead.html" with col_id="families" col_name="PPI families" %} <button type="button" class="btn btn-primary float-right" style="width: inherit!important" data-toggle="modal" data-target="#selectColumns"> <i class="fa fa-columns" title="customize columns"></i> </button> @@ -59,6 +60,9 @@ {% if "nb_aromatic_sssr" in fields %} <th scope="col">{{ compound.nb_aromatic_sssr }}</th> {% endif %} + {% if "families" in fields %} + <th scope="col">{% for family in compound.families %}{{ family.name }}{% if not forloop.last %}, {% endif %}{% endfor %}</th> + {% endif %} </tr> {% endfor %} </tbody>