Skip to content

Commit

Permalink
The active page and gap elements should not be links
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 10, 2014
1 parent 45217ba commit 403269d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/kaminari/blacklight/_gap.html.erb
Expand Up @@ -6,6 +6,6 @@
remote: data-remote
-%>
<li class="disabled">
<%= link_to raw(t 'views.pagination.truncate'), "" %>
<span><%= raw(t 'views.pagination.truncate') %></span>
</li>

6 changes: 5 additions & 1 deletion app/views/kaminari/blacklight/_page.html.erb
Expand Up @@ -8,6 +8,10 @@
remote: data-remote
-%>
<li class="<%= 'active' if page.current? %>">
<%= link_to number_with_delimiter(page.to_s), url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
<% if page.current? %>
<span><%= number_with_delimiter(page.to_s) %></span>
<% else %>
<%= link_to number_with_delimiter(page.to_s), url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
<% end %>
</li>

0 comments on commit 403269d

Please sign in to comment.