It didn't do a very good job in centering the pagination controls across our different types of tables. Removing this class left-aligns the pagination to the table. It should still work fine, and makes things easier.
Signed-off-by: Belen Barros Pena <[email protected]> --- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 5 ----- bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | 2 +- .../lib/toaster/toastergui/templates/detail_pagination_bottom.html | 2 +- bitbake/lib/toaster/toastergui/templates/toastertable-simple.html | 2 +- bitbake/lib/toaster/toastergui/templates/toastertable.html | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css index 26e468f..f8a5f9d 100644 --- a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +++ b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css @@ -14,11 +14,6 @@ margin: 0 0 40px 0; } -.pagination-centered { - margin-left: 50%; -} - - select[class^="pagesize"] { margin-bottom: 0; } diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html index 80d5e11..96f405c 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html @@ -5,7 +5,7 @@ <div> <!--span class="help-inline">Showing {{objects.start_index}} to {{objects.end_index}} out of {{objects.paginator.count}} entries.</span--> - <ul class="pagination pagination-centered"> + <ul class="pagination"> {%if objects.has_previous %} <li><a href="javascript:reload_params({'page':{{objects.previous_page_number}}})">«</a></li> {%else%} diff --git a/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html b/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html index a2ee6b2..211548b 100644 --- a/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html @@ -7,7 +7,7 @@ {# only paginate if 10 or more rows unfiltered, all pages #} {% if object_count >= 10 %} <div> - <ul class="pagination pagination-centered"> + <ul class="pagination"> {%if objects.has_previous %} <li><a href="javascript:reload_params({'page':{{objects.previous_page_number}}})">«</a></li> {%else%} diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html b/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html index c713524..e0a203d 100644 --- a/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html +++ b/bitbake/lib/toaster/toastergui/templates/toastertable-simple.html @@ -77,7 +77,7 @@ <!-- Pagination controls --> <div id="pagination-{{table_name}}"> - <ul class="pagination pagination-centered"> + <ul class="pagination"> </ul> <div class="pull-right"> diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable.html b/bitbake/lib/toaster/toastergui/templates/toastertable.html index 73724b5..4f79632 100644 --- a/bitbake/lib/toaster/toastergui/templates/toastertable.html +++ b/bitbake/lib/toaster/toastergui/templates/toastertable.html @@ -91,7 +91,7 @@ <!-- Pagination controls --> <div id="pagination-{{table_name}}"> - <ul class="pagination pagination-centered"> + <ul class="pagination"> </ul> <div class="pull-right"> -- 1.9.1 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
