views: fix deprecated calls to ViewComponent#with_variant.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
<% content_for(:html_header) do %>
|
||||
<% if prev_page.present? %>
|
||||
<%= tag.link rel: "prev", href: url_for_page(prev_page) %>
|
||||
<% end %>
|
||||
|
||||
<% if next_page.present? %>
|
||||
<%= tag.link rel: "next", href: url_for_page(next_page) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -1,15 +0,0 @@
|
||||
<div class="paginator numbered-paginator mt-8 mb-4 space-x-2 flex justify-center items-center">
|
||||
<%= link_to_page chevron_left_icon, prev_page, class: "paginator-prev", rel: "prev", "data-shortcut": "a left" %>
|
||||
|
||||
<% pages.each do |page| %>
|
||||
<% if page == "..." %>
|
||||
<%= ellipsis_icon class: "paginator-ellipsis text-muted desktop-only" %>
|
||||
<% elsif page == current_page %>
|
||||
<%= tag.span page, class: "paginator-current font-bold" %>
|
||||
<% else %>
|
||||
<%= link_to_page page, class: "paginator-page desktop-only" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to_page chevron_right_icon, next_page, class: "paginator-next", rel: "next", "data-shortcut": "d right" %>
|
||||
</div>
|
||||
@@ -1,4 +0,0 @@
|
||||
<div class="paginator sequential-paginator mt-8 mb-4 space-x-2 flex justify-center items-center">
|
||||
<%= link_to_page chevron_left_icon, prev_page, class: "paginator-prev", rel: "prev", "data-shortcut": "a left" %>
|
||||
<%= link_to_page chevron_right_icon, next_page, class: "paginator-next", rel: "next", "data-shortcut": "d right" %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user