<!-- 
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * @package    block_quickmail
 * @copyright  2008 onwards Louisiana State University
 * @copyright  2008 onwards Chad Mazilly, Robert Russo, Jason Peak, Dave Elliott, Adam Zapletal, Philip Cali
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
-->

{{#paginationShow}}
    <nav>
        <ul class="pagination">
            {{#paginationShowFirst}}
                <li class="page-item "
                    data-region="page-item"
                    data-page-number="1">
                    <a href="{{paginationFirstPageUri}}"
                       class="page-link"
                       data-region="page-link">
                        <span aria-hidden="true">{{#str}} first {{/str}}</span>
                        <span class="sr-only">{{#str}} first {{/str}}</span>
                    </a>
                </li>
            {{/paginationShowFirst}}

            {{#paginationShowPrevious}}
                <li class="page-item "
                    data-region="page-item"
                    data-page-number="{{paginationPreviousPage}}">
                    <a href="{{paginationPreviousPageUri}}"
                       class="page-link"
                       data-region="page-link">
                        <span aria-hidden="true">&laquo;</span>
                        <span class="sr-only">{{#str}} previous {{/str}}</span>
                    </a>
                </li>
            {{/paginationShowPrevious}}

            <li class="page-item active "
                data-region="page-item"
                data-page-number="{{paginationCurrentPage}}">
                <a href="{{paginationCurrentPageUri}}"
                   class="page-link"
                   data-region="page-link">
                    <span aria-hidden="true">{{paginationCurrentPage}}</span>
                    <span class="sr-only">{{paginationCurrentPage}}</span>
                </a>
            </li>

            {{#paginationShowNext}}
                <li class="page-item "
                    data-region="page-item"
                    data-page-number="{{paginationNextPage}}">
                    <a href="{{paginationNextPageUri}}"
                       class="page-link"
                       data-region="page-link">
                        <span aria-hidden="true">&raquo;</span>
                        <span class="sr-only">{{#str}} next {{/str}}</span>
                    </a>
                </li>
            {{/paginationShowNext}}

            {{#paginationShowLast}}
                <li class="page-item "
                    data-region="page-item"
                    data-page-number="{{paginationTotalCount}}">
                    <a href="{{paginationLastPageUri}}"
                       class="page-link"
                       data-region="page-link">
                        <span aria-hidden="true">{{#str}} last {{/str}}</span>
                        <span class="sr-only">{{#str}} last {{/str}}</span>
                    </a>
                </li>
            {{/paginationShowLast}}
        </ul>
    </nav>
{{/paginationShow}}