open-nomad/ui/app/templates/components/list-pagination.hbs

17 lines
579 B
Handlebars
Raw Normal View History

2017-09-19 14:47:10 +00:00
{{#if source.length}}
{{yield (hash
first=(component "list-pagination/list-pager" page=1 visible=(not (eq page 1)))
prev=(component "list-pagination/list-pager" page=(dec page) visible=(not (eq page 1)))
next=(component "list-pagination/list-pager" page=(inc page) visible=(not (eq page lastPage)))
last=(component "list-pagination/list-pager" page=lastPage visible=(not (eq page lastPage)))
pageLinks=pageLinks
currentPage=page
totalPages=lastPage
startsAt=startsAt
endsAt=endsAt
list=list
)}}
{{else}}
{{yield to="inverse"}}
{{/if}}