From 192583a91e17b15da4668dbacee035def1d68b0c Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 5 Dec 2013 14:20:36 +0000 Subject: bitbake: toaster: add pagination to the Simple UI In an effort to make the Simple UI more usable and reponsive, this patch adds pagination support for the pages with lots of entries: Builds, Configuration and Tasks. (Bitbake rev: d4f075c050ad9ecebe750420d49961a7f30d090b) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../lib/toaster/bldviewer/templates/basetable.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/toaster/bldviewer/templates/basetable.html') diff --git a/bitbake/lib/toaster/bldviewer/templates/basetable.html b/bitbake/lib/toaster/bldviewer/templates/basetable.html index 083bcb82e9..16628eafbe 100644 --- a/bitbake/lib/toaster/bldviewer/templates/basetable.html +++ b/bitbake/lib/toaster/bldviewer/templates/basetable.html @@ -26,7 +26,7 @@ function filterTableRows(test) { {% block pagename %} {% endblock %} -
Search: +
Filter:
{% if hideshowcols %}
Show/Hide columns: @@ -36,7 +36,25 @@ function filterTableRows(test) {
{% endif %}
-
+ +
Showing {{objects.start_index}} to {{objects.end_index}} out of {{objects.paginator.count}} entries.  +
    +{%if objects.has_previous %} +
  • «
  • +{%else%} +
  • «
  • +{%endif%} +{% for i in objects.page_range %} + {{i}} +{% endfor %} +{%if objects.has_next%} +
  • »
  • +{%else%} +
  • »
  • +{%endif%} +
+
+ {% block pagetable %} {% endblock %} -- cgit v1.2.3-54-g00ecf