Skip to content

Commit 1826c6a

Browse files
committed
Fix pagination
1 parent 8fd2191 commit 1826c6a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<li>
2-
<%= link_to_unless current_page.first?, raw(t("views.pagination.first")), url, { remote: } %>
2+
<%= link_to_unless current_page.first?, raw(t("views.pagination.first")), url, { remote:, class: "btn" } %>
33
</li>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<li>
2-
<%= link_to_unless current_page.last?, raw(t("views.pagination.last")), url, { remote: } %>
2+
<%= link_to_unless current_page.last?, raw(t("views.pagination.last")), url, { remote:, class: "btn" } %>
33
</li>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<li>
2-
<%= link_to_unless current_page.last?, raw(t("views.pagination.next")), url, rel: "next", remote:, class: "btn" %>
2+
<%= link_to_unless current_page.last?, raw(t("views.pagination.next")), url, rel: "next", remote:, class: "btn bg-info" %>
33
</li>

app/views/kaminari/_page.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<% if page.current? %>
22
<li class="active">
3-
<%= content_tag :a, page, data: { remote: }, rel: page.rel, "aria-current": "page" %>
3+
<%= content_tag :a, page, data: { remote:, class: "btn" }, rel: page.rel, "aria-current": "page" %>
44
</li>
55
<% else %>
66
<li>
7-
<%= link_to page, url, remote:, rel: page.rel %>
7+
<%= link_to page, url, remote:, class: "btn", rel: page.rel %>
88
</li>
99
<% end %>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<li>
2-
<%= link_to_unless current_page.first?, raw(t("views.pagination.previous")), url, rel: "prev", remote: %>
2+
<%= link_to_unless current_page.first?, raw(t("views.pagination.previous")), url, class: "btn bg-info", rel: "prev", remote: %>
33
</li>

0 commit comments

Comments
 (0)