From eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 Mon Sep 17 00:00:00 2001 From: Dave Cobbley Date: Tue, 14 Aug 2018 10:05:37 -0700 Subject: [Subtree] Removing import-layers directory As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley Signed-off-by: Brad Bishop --- .../templates/detail_pagination_bottom.html | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 poky/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html (limited to 'poky/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html') diff --git a/poky/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html b/poky/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html new file mode 100644 index 000000000..15adfbc91 --- /dev/null +++ b/poky/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html @@ -0,0 +1,57 @@ +{% comment %} + Show pagination controls as per search/pagination table detail spec. + Input: objects, setup for pagination using the standard method in views. + object_count, count for complete list of objects, (all pages, no pattern) +{% endcomment %} + +{# only paginate if 10 or more rows unfiltered, all pages #} +{% if object_count >= 10 %} +
+
    +{%if objects.has_previous %} +
  • «
  • +{%else%} +
  • «
  • +{%endif%} +{% for i in objects.page_range %} + {{i}} +{% endfor %} +{%if objects.has_next%} +
  • »
  • +{%else%} +
  • »
  • +{%endif%} +
+ + +
+ + + +{% endif %} + -- cgit v1.2.3