pagination.html 816 B

1234567891011121314151617181920212223
  1. {{ $pag := $.Paginator }}
  2. <nav class="gdoc-paging flex flex-even align-center" role="navigation">
  3. <div class="gdoc-paging__item gdoc-paging__item--prev">
  4. {{ if $pag.HasPrev }}
  5. <a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Prev.URL }}">
  6. <i class="gdoc-icon">gdoc_keyboard_arrow_left</i>
  7. {{ i18n "pagination_page_prev" | upper }}
  8. </a>
  9. {{ end }}
  10. </div>
  11. <div class="gdoc-paging__state">{{ i18n "pagination_page_state" $pag }}</div>
  12. <div class="gdoc-paging__item gdoc-paging__item--next">
  13. {{ if $pag.HasNext }}
  14. <a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Next.URL }}">
  15. {{ i18n "pagination_page_next" | upper }}
  16. <i class="gdoc-icon">gdoc_keyboard_arrow_right</i>
  17. </a>
  18. {{ end }}
  19. </div>
  20. </nav>