codemy/writefully

View on GitHub
app/views/kaminari/_gap.html.erb

Summary

Maintainability
Test Coverage
<%# Non-link tag that stands for skipped pages...
  - available local variables
    current_page:  a page object for the currently displayed page
    total_pages:   total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
-%>
<li class="page gap">
  <%= link_to t('views.pagination.truncate').html_safe, '#' %>  
</li>