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>
This commit is contained in:
Belen Barros Pena
2015-01-26 16:02:24 +00:00
committed by Richard Purdie
parent 8a2ec99aad
commit 05f5435563

View File

@@ -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>