vendor/uvdesk/core-framework/Resources/views/Templates/pagination.html.twig line 1

Open in your IDE?
  1. <script id="pagination_tmp" type="text/template">
  2. <% if(pageCount > 1) { %>
  3. <div class="uv-pagination">
  4. <% if(previous) { %>
  5. <a data-page="<%= previous %>" href="<%= url.replace('replacePage', previous) %>" id="previous" class="uv-pagination-previous">
  6. </a>
  7. <% } else { %>
  8. <a class="uv-pagination-previous">
  9. </a>
  10. <% } %>
  11. <% if(startPage > 1) { %>
  12. <a data-page="1" href="<%= url.replace('replacePage', 1) %>">1</a>
  13. <% if(startPage == 3) { %>
  14. <a data-page="2" href="<%= url.replace('replacePage', 2) %>">2</a>
  15. <% } else if(startPage != 2) { %>
  16. <a class="uv-page-active" style="text-decoration: none">&hellip;</a>
  17. <% } %>
  18. <% } %>
  19. <% _.each(pagesInRange, function(page) { %>
  20. <% if(page != current) { %>
  21. <a data-page="<%= page %>" href="<%= url.replace('replacePage', page) %>">
  22. <%= page %>
  23. </a>
  24. <% } else { %>
  25. <a class="uv-page-active"><%= page %></a>
  26. <% } %>
  27. <% }) %>
  28. <% if(pageCount > endPage) { %>
  29. <% if(pageCount > (endPage + 1) ) { %>
  30. <% if(pageCount > (endPage + 2) ) { %>
  31. <a class="uv-page-active" style="text-decoration: none">&hellip;</a>
  32. <% } else { %>
  33. <a data-page="<%= pageCount - 1 %>" href="<%= url.replace('replacePage', pageCount - 1) %>">
  34. <%= pageCount - 1 %>
  35. </a>
  36. <% } %>
  37. <% } %>
  38. <a data-page="<%= pageCount %>" href="<%= url.replace('replacePage', pageCount) %>">
  39. <%= pageCount %>
  40. </a>
  41. <% } %>
  42. <% if(next) { %>
  43. <a href="<%= url.replace('replacePage',next) %>" data-page="<%= next %>" id="next" class="uv-pagination-next">
  44. </a>
  45. <% } else { %>
  46. <a class="uv-pagination-next">
  47. </a>
  48. <% } %>
  49. </div>
  50. <% } %>
  51. </script>