aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-01-26 16:02:24 +0000
committerAlexandru DAMIAN <alexandru.damian@intel.com>2015-01-27 14:25:07 +0000
commit5399738fb2e2956a7d4ce59699dc4b6f6c67bbb2 (patch)
tree48c284947e69d1b49473f0b9d3de7cffa7158364
parent4282a92fe3652c52448dba3d5f3fc4e1de28be63 (diff)
downloadbitbake-5399738fb2e2956a7d4ce59699dc4b6f6c67bbb2.tar.gz
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] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
-rw-r--r--lib/toaster/toastergui/templates/layerdetails.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/layerdetails.html b/lib/toaster/toastergui/templates/layerdetails.html
index 6c5e7859a..1daf9b950 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>