Files
grecia/app/views/kaminari/_page.html.erb
Javi Martín 11e52dbe98 Remove kaminari_path
The main reason to use it was the `rel` attribute for previous/next
pages not being indexed correctly by certain search engines when using a
relative URL. However, AFAIK that only applied to `<link>` tags, not to
`<a>` tags, and only if a `<base>` tag was defined.

In any case, it looks like the same search engines don't use the `rel`
attribute for previous/next to index pages anymore.
2019-10-20 17:26:14 +02:00

11 lines
289 B
Plaintext

<% if page.current? %>
<li class="current">
<span class="show-for-sr"><%= t("views.pagination.current") %></span>
<%= page %>
</li>
<% else %>
<li>
<%= link_to page, url, { :remote => remote, :rel => page.next? ? "next" : page.prev? ? "prev" : nil } %>
</li>
<% end %>