cartodb/app/views/admin/pages/shared/_pagination.html.erb

19 lines
536 B
Plaintext
Raw Normal View History

2020-06-15 10:58:47 +08:00
<div class="ContentFooter">
<div class="u-inner ContentFooter-inner ContentFooter-inner--paginationOnly">
<div class="js-content-footer"></div>
</div>
</div>
<% content_for(:js) do %>
<script type="text/javascript">
var paginationModelAttrs = {
current_page: <%= @current_page %>,
total_count: <%= @total_count %>,
per_page: <%= @per_page %>,
url_to: function(page) {
return '<%= @numbered_page_url %>'.replace('<%= @page_number_placeholder %>', page);
}
}
</script>
<% end %>