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

17 lines
628 B
Handlebars
Raw Normal View History

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