17 lines
434 B
Text
17 lines
434 B
Text
<% if page.current? %>
|
|
<li class="page-item active">
|
|
<%= content_tag :a,
|
|
page,
|
|
data: { remote: remote },
|
|
rel: page.rel,
|
|
class: 'page-link' %>
|
|
</li>
|
|
<% else %>
|
|
<li class="page-item">
|
|
<%= link_to page,
|
|
url,
|
|
remote: remote,
|
|
rel: page.rel,
|
|
class: 'page-link' %>
|
|
</li>
|
|
<% end %>
|