diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2015-01-26 16:02:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 22:11:34 +0000 |
commit | 05f5435563c416b1cd850bd52c3190331ebf471f (patch) | |
tree | 429e1b1a8da24939696ac4a2fdb7c1de2979c0e4 | |
parent | 8a2ec99aad55432c808310f9cfc3efa74198f266 (diff) | |
download | 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>
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/layerdetails.html | 10 |
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 6c5e7859aa..1daf9b9500 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html | |||
@@ -223,6 +223,7 @@ | |||
223 | </div> | 223 | </div> |
224 | {% else %} | 224 | {% else %} |
225 | 225 | ||
226 | {% if total_targets > 10 %} | ||
226 | <div class="pull-right"> | 227 | <div class="pull-right"> |
227 | <span class="help-inline" style="padding-top:5px;">Show rows:</span> | 228 | <span class="help-inline" style="padding-top:5px;">Show rows:</span> |
228 | <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> | 229 | <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> |
@@ -237,6 +238,7 @@ | |||
237 | {% endwith %} | 238 | {% endwith %} |
238 | </select> | 239 | </select> |
239 | </div> | 240 | </div> |
241 | {% endif %} | ||
240 | </div> | 242 | </div> |
241 | 243 | ||
242 | <table class="table table-bordered table-hover"> | 244 | <table class="table table-bordered table-hover"> |
@@ -274,6 +276,7 @@ | |||
274 | </tbody> | 276 | </tbody> |
275 | </table> | 277 | </table> |
276 | 278 | ||
279 | {% if total_targets > 10 %} | ||
277 | <!-- Show pagination controls --> | 280 | <!-- Show pagination controls --> |
278 | <div class="pagination"> | 281 | <div class="pagination"> |
279 | <ul> | 282 | <ul> |
@@ -308,6 +311,7 @@ | |||
308 | </div> | 311 | </div> |
309 | {% endif %} | 312 | {% endif %} |
310 | {% endif %} | 313 | {% endif %} |
314 | {% endif %} | ||
311 | </div> | 315 | </div> |
312 | 316 | ||
313 | 317 | ||
@@ -351,8 +355,10 @@ | |||
351 | </div> | 355 | </div> |
352 | <!-- end row-fluid --> | 356 | <!-- end row-fluid --> |
353 | </div> | 357 | </div> |
358 | |||
354 | {% else %} | 359 | {% else %} |
355 | 360 | ||
361 | {% if total_machines > 10 %} | ||
356 | <div class="pull-right"> | 362 | <div class="pull-right"> |
357 | <span class="help-inline" style="padding-top:5px;">Show rows:</span> | 363 | <span class="help-inline" style="padding-top:5px;">Show rows:</span> |
358 | <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> | 364 | <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> |
@@ -367,6 +373,8 @@ | |||
367 | {% endwith %} | 373 | {% endwith %} |
368 | </select> | 374 | </select> |
369 | </div> | 375 | </div> |
376 | {% endif %} | ||
377 | |||
370 | </div> | 378 | </div> |
371 | 379 | ||
372 | <table class="table table-bordered table-hover"> | 380 | <table class="table table-bordered table-hover"> |
@@ -394,6 +402,7 @@ | |||
394 | </tbody> | 402 | </tbody> |
395 | </table> | 403 | </table> |
396 | 404 | ||
405 | {% if total_machines > 10 %} | ||
397 | <!-- Show pagination controls --> | 406 | <!-- Show pagination controls --> |
398 | <div class="pagination"> | 407 | <div class="pagination"> |
399 | <ul> | 408 | <ul> |
@@ -428,6 +437,7 @@ | |||
428 | </div> | 437 | </div> |
429 | {% endif %} | 438 | {% endif %} |
430 | {% endif %} | 439 | {% endif %} |
440 | {% endif %} | ||
431 | </div> | 441 | </div> |
432 | </div> | 442 | </div> |
433 | </div> | 443 | </div> |