<div id="paginator" data-bind="with: paginator">
    <nav class="text-center" aria-label="paginator">
        <ul class="pagination" role="menubar">
            <li><a data-bind="css: {'disabled': !has_previous()}, onEnterkeyClick, click: $parent.newPage.bind($parent, previous_page_number()), 
                attr: {'aria-label': $root.translations.previousPage, 'aria-disabled': !has_previous(), 'role': 'menuitem'}" href="#">«</a></li>
            <!-- ko foreach: { data: pages, as: 'page' } -->
                <!-- ko if: page -->
                <li class="page" data-bind="click: $parents[1].newPage.bind($parents[1]), css: {'current active': (page == $parent.current_page())}">
                    <a href="#" data-bind="text: page, attr:{'data-page':page, 'aria-label': $root.translations.page + ' ' + page, 
                    'role': 'menuitem', 'aria-posinet': page}"
                ></a></li>
                <!-- /ko -->
                <!-- ko ifnot: page -->
                <li class="disabled"><a href="#" data-bind="attr: {'aria-label': $root.translations.morePages, 'aria-disabled': true}">...</a></li>
                <!-- /ko -->
            <!-- /ko -->
            <li><a data-bind="css: { 'disabled': !has_next()}, onEnterkeyClick, click: $parent.newPage.bind($parent, next_page_number()),
                attr: {'aria-label': $root.translations.nextPage, 'aria-disabled': !has_next(), 'role': 'menuitem'}" href="#">»</a></li>
        </ul>
    </nav>
</div>
