11< div class ="generic-table ">
22 < div class ="gt-wrapper ">
3- < table class ="table table-condensed table-hover table- sortable " ng-if ="gtHasData ">
3+ < table class ="table table-sortable " ng-if ="gtHasData " ng-class =" gtClasses ">
44 < thead >
55 < tr ng-class ="::gtRowTransition ? 'fade-in animate':'' ">
66 < th ng-repeat ="field in ::gtFields | orderBy:'columnOrder' track by field.objectKey " ng-show =":gtRefresh:gtSettings | getProperty:field.objectKey:'visible' " ng-class =":gtRefresh:[field.classNames, (field.objectKey | camelToDash) + '-column', 'sort-'+(gtSettings | getProperty:field.objectKey:'sort')] "> < span ng-click =":gtRefresh:(gtSettings | getProperty:field.objectKey:'sort') === 'enable' ? sort(field.objectKey):(gtSettings | getProperty:field.objectKey:'sort') === 'asc' ? sort(field.objectKey):(gtSettings | getProperty:field.objectKey:'sort') === 'desc' ? sort(field.objectKey):'' "> {{::field.name}}</ span > </ th >
1616 </ tbody >
1717 < tr ng-if ="pagination === false "> < td class ="gt-no-data " colspan ="{{:gtRefresh:(gtSettings | filter:{'visible':true}:true).length}} "> {{::gtNoDataTxt}}</ td > </ t > </ tr >
1818 </ table >
19+ < div class ="gt-pagination text-center " ng-if ="gtPagination === true && pagination !== false ">
20+ < ul class ="pagination ">
21+ < li ng-class ="{disabled: currentPage === 0} " ng-show ="currentPage !== 0 ">
22+ < button class ="btn-link link " ng-click ="previousPage() " translate ="ALL.GENERAL#PAGINATION_PREVIOUS#BUTTON " ng-disabled ="currentPage === 0 "> « Prev</ button >
23+ </ li >
24+ < li ng-show ="currentPage > 3 ">
25+ < button class ="btn-link link " ng-click ="setPage(0) "> 1</ button > < small > …</ small >
26+ </ li >
27+ < li style ="display: inline;padding: 0 5px; " ng-repeat ="page in pagination " ng-class ="page === currentPage ? 'active':'' "> < button class ="btn-link link " ng-click ="setPage(page) "> {{page+1}}</ button > </ li >
28+ < li ng-show ="currentPage +1 < pages.length-1 && pages.length > 4 ">
29+ < small ng-show ="currentPage + 3 < pages.length "> …</ small > < button class ="btn-link link " ng-click ="setPage(pages.length-1) "> {{pages.length}}</ button >
30+ </ li >
31+ < li ng-class ="{disabled: currentPage == pages.length} " ng-show ="currentPage+1 !== pages.length ">
32+ < button class ="btn-link link " ng-click ="nextPage() " translate ="ALL.GENERAL#PAGINATION_NEXT#BUTTON " ng-disabled ="currentPage+1 === pages.length "> Next »</ button >
33+ </ li >
34+ </ ul >
35+ </ div >
1936 </ div >
20- < div class ="gt-pagination text-center " ng-if ="gtPagination === true && pagination !== false ">
21- < ul class ="pagination ">
22- < li ng-class ="{disabled: currentPage === 0} " ng-show ="currentPage !== 0 ">
23- < button class ="btn-link link " ng-click ="previousPage() " translate ="ALL.GENERAL#PAGINATION_PREVIOUS#BUTTON " ng-disabled ="currentPage === 0 "> « Prev</ button >
24- </ li >
25- < li ng-show ="currentPage > 3 ">
26- < button class ="btn-link link " ng-click ="setPage(0) "> 1</ button > < small > …</ small >
27- </ li >
28- < li style ="display: inline;padding: 0 5px; " ng-repeat ="page in pagination " ng-class ="page === currentPage ? 'active':'' "> < button class ="btn-link link " ng-click ="setPage(page) "> {{page+1}}</ button > </ li >
29- < li ng-show ="currentPage +1 < pages.length-1 && pages.length > 4 ">
30- < small ng-show ="currentPage + 3 < pages.length "> …</ small > < button class ="btn-link link " ng-click ="setPage(pages.length-1) "> {{pages.length}}</ button >
31- </ li >
32- < li ng-class ="{disabled: currentPage == pages.length} " ng-show ="currentPage+1 !== pages.length ">
33- < button class ="btn-link link " ng-click ="nextPage() " translate ="ALL.GENERAL#PAGINATION_NEXT#BUTTON " ng-disabled ="currentPage+1 === pages.length "> Next »</ button >
34- </ li >
35- </ ul >
36- </ div >
37- </ div >
37+ </ div >
0 commit comments