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

15 lines
753 B
Handlebars
Raw Normal View History

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