20 lines
828 B
Handlebars
20 lines
828 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
{{#if this.source.length}}
|
|
{{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
|
|
)}}
|
|
{{/if}}
|