ccdb-web/app/templates/components/ccdb-pagination.hbs

35 lines
1 KiB
Handlebars

<div class="row">
<div class="col-md-6 table-nav">
<ul class="pager pull-left">
{{#if notOnFirst}}
<li><a {{action (action changePage first)}}>First</a></li>
{{else}}
<li class="disabled"><a>First</a></li>
{{/if}}
{{#if prev}}
<li><a {{action (action changePage prev)}}>Previous</a></li>
{{else}}
<li class="disabled"><a>Previous</a></li>
{{/if}}
{{#if next}}
<li><a {{action (action changePage next)}}>Next</a></li>
{{else}}
<li class="disabled"><a>Next</a></li>
{{/if}}
{{#if notOnLast}}
<li><a {{action (action changePage last)}}>Last</a></li>
{{else}}
<li class="disabled"><a>Last</a></li>
{{/if}}
</ul>
</div>
<div class="col-md-6">
<div class="pull-right table-stats">
<span class="label label-default">Current Page: {{currentPage}}</span>
<span class="label label-default">Total Records: {{totalRecords}}</span>
</div>
</div>
</div>