summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-01-26 16:02:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-29 22:11:34 +0000
commit05f5435563c416b1cd850bd52c3190331ebf471f (patch)
tree429e1b1a8da24939696ac4a2fdb7c1de2979c0e4 /bitbake/lib/toaster
parent8a2ec99aad55432c808310f9cfc3efa74198f266 (diff)
downloadast2050-yocto-poky-05f5435563c416b1cd850bd52c3190331ebf471f.zip
ast2050-yocto-poky-05f5435563c416b1cd850bd52c3190331ebf471f.tar.gz
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 <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layerdetails.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html
index 6c5e785..1daf9b9 100644
--- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html
+++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html
@@ -223,6 +223,7 @@
</div>
{% else %}
+ {% if total_targets > 10 %}
<div class="pull-right">
<span class="help-inline" style="padding-top:5px;">Show rows:</span>
<select style="margin-top:5px;margin-bottom:0px;" class="pagesize">
@@ -237,6 +238,7 @@
{% endwith %}
</select>
</div>
+ {% endif %}
</div>
<table class="table table-bordered table-hover">
@@ -274,6 +276,7 @@
</tbody>
</table>
+ {% if total_targets > 10 %}
<!-- Show pagination controls -->
<div class="pagination">
<ul>
@@ -308,6 +311,7 @@
</div>
{% endif %}
{% endif %}
+ {% endif %}
</div>
@@ -351,8 +355,10 @@
</div>
<!-- end row-fluid -->
</div>
+
{% else %}
+ {% if total_machines > 10 %}
<div class="pull-right">
<span class="help-inline" style="padding-top:5px;">Show rows:</span>
<select style="margin-top:5px;margin-bottom:0px;" class="pagesize">
@@ -367,6 +373,8 @@
{% endwith %}
</select>
</div>
+ {% endif %}
+
</div>
<table class="table table-bordered table-hover">
@@ -394,6 +402,7 @@
</tbody>
</table>
+ {% if total_machines > 10 %}
<!-- Show pagination controls -->
<div class="pagination">
<ul>
@@ -428,6 +437,7 @@
</div>
{% endif %}
{% endif %}
+ {% endif %}
</div>
</div>
</div>
OpenPOWER on IntegriCloud