[bitbake-devel] [PATCH 09/14] toastergui: hide table controls when when less than 10 entries
Alex DAMIAN
alexandru.damian at intel.com
Tue Jan 27 14:27:30 UTC 2015
From: Belen Barros Pena <belen.barros.pena at intel.com>
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]
Signed-off-by: Belen Barros Pena <belen.barros.pena at intel.com>
---
lib/toaster/toastergui/templates/layerdetails.html | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lib/toaster/toastergui/templates/layerdetails.html b/lib/toaster/toastergui/templates/layerdetails.html
index 6c5e785..1daf9b9 100644
--- a/lib/toaster/toastergui/templates/layerdetails.html
+++ b/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>
--
1.9.1
More information about the bitbake-devel
mailing list