Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0F05EE00D63; Tue, 24 May 2016 04:54:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 47ED9E00C18 for ; Tue, 24 May 2016 04:52:49 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 24 May 2016 04:52:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208";a="961194047" Received: from icarus.isw.intel.com ([10.237.224.37]) by orsmga001.jf.intel.com with ESMTP; 24 May 2016 04:52:48 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 24 May 2016 12:39:00 +0100 Message-Id: <1464090003-23469-44-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> References: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> Subject: [PATCH 043/106] toaster: Fix filters X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2016 11:54:55 -0000 Set the correct size for the filter buttons, and give some white space to the 'clear filter' buttons in the toastertables. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 6 ++++++ bitbake/lib/toaster/toastergui/static/js/table.js | 4 ++-- bitbake/lib/toaster/toastergui/templates/basetable_top.html | 2 +- bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css index f3ddbe2..cf4abc6 100644 --- a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +++ b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css @@ -138,3 +138,9 @@ fieldset[disabled] .btn-primary:hover { #build-input { width: 20em; } + +/* Clear filter tooltips in toastertables */ + +.tooltip .btn-small { + margin: 10px; +} diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js index 9fda21b..85ed188 100644 --- a/bitbake/lib/toaster/toastergui/static/js/table.js +++ b/bitbake/lib/toaster/toastergui/static/js/table.js @@ -232,7 +232,7 @@ function tableInit(ctx){ /* Setup the filter button */ if (col.filter_name){ - var filterBtn = $(''); + var filterBtn = $(''); filterBtn.data('filter-name', col.filter_name); filterBtn.prop('id', col.filter_name); @@ -282,7 +282,7 @@ function tableInit(ctx){ filterBtn.tooltip({ html: true, - title: '', + title: '', placement: 'bottom', delay: { hide: 1500, diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index 65ee17f..6731ff2 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html @@ -232,7 +232,7 @@ {%if tc.orderfield%}{{tc.name}}{%else%}{{tc.name}}{%endif%} {%if tc.ordericon%} {%endif%} {%if tc.filter%}
- +
{%endif%} {% endfor %} diff --git a/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html b/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html index fddb041..6589b0a 100644 --- a/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html +++ b/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html @@ -17,7 +17,7 @@ {{objects.paginator.count}} {% endif %} {%if tc.filter%}
- +
{%endif%} {% endfor %} -- 1.9.1