lemo-crm/web/app/templates/components/pagination-bar.hbs
Shaun Chyxion db76f36a99 bug fixes
2017-08-07 00:18:45 +08:00

31 lines
779 B
Handlebars

<h6 class="pull-left no-margin">
{{#if (gt total 1)}}
Total: {{total}} Records
{{else if (eq total 1)}}
Total: {{total}} Record
{{else}}
No Record
{{/if}}
</h6>
<ul class="pagination pull-right no-margin">
<li class="prev">
<a href="#" {{action 'gotoPage' prevPage}}>
<i class="ace-icon fa fa-angle-double-left"></i>
</a>
</li>
{{#each pages as |page|}}
<li class="{{if (eq page currPage) 'active'}}">
<a href="#" {{action 'gotoPage' page}}>
{{page}}
</a>
</li>
{{/each}}
<li class="next">
<a href="#" {{action 'gotoPage' nextPage}}>
<i class="ace-icon fa fa-angle-double-right"></i>
</a>
</li>
</ul>