From 05f5435563c416b1cd850bd52c3190331ebf471f Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Mon, 26 Jan 2015 16:02:24 +0000 Subject: bitbake: toastergui: hide table controls when when less than 10 entries The 'show rows' and pagination controls in the layer details page should only show when there are more than 10 entries in a table. [YOCTO #7217] (Bitbake rev: 5399738fb2e2956a7d4ce59699dc4b6f6c67bbb2) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/layerdetails.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 6c5e7859aa..1daf9b9500 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -223,6 +223,7 @@ {% else %} + {% if total_targets > 10 %}
Show rows:
+ {% endif %} @@ -274,6 +276,7 @@
+ {% if total_targets > 10 %} {% endif %} {% endif %} + {% endif %} @@ -351,8 +355,10 @@ + {% else %} + {% if total_machines > 10 %}
Show rows:
+ {% endif %} + @@ -394,6 +402,7 @@
+ {% if total_machines > 10 %} {% endif %} {% endif %} + {% endif %} -- cgit v1.2.3-54-g00ecf