From 30626159c8eb553e015bcfb570926560a64b57bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Fri, 20 Jul 2018 11:57:56 +0200 Subject: [PATCH] add filter value for number of publications Former-commit-id: ea1a5245cd6369eb4201de93d3618590d26f1db2 --- ippisite/ippidb/templates/compound_list.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ippisite/ippidb/templates/compound_list.html b/ippisite/ippidb/templates/compound_list.html index ae0bd196..345a241b 100644 --- a/ippisite/ippidb/templates/compound_list.html +++ b/ippisite/ippidb/templates/compound_list.html @@ -31,7 +31,7 @@ </div> <div class="m-2 d-flex "> <span>{{ compounds.paginator.count }} compounds</span> - {% 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%} + {% 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_max %} <span> - filters: {% if selected_ppis %} @@ -63,6 +63,9 @@ {% if nb_donor_h != nb_donor_h_max %} {% include "slider_badge.html" with param_name="nb_donor_h" param_value=nb_donor_h param_label="H donors" %} {% endif %} + {% if pubs != pubs %} + {% include "slider_badge.html" with param_name="pubs" param_value=pubs param_label="Publications" %} + {% endif %} </span> {% endif %} <div class="btn-group m-1 ml-auto"> -- GitLab