open-nomad/ui/app/templates/components/list-pagination.hbs
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

17 lines
579 B
Handlebars

{{#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}}