Sha256: a29c519636a72054b689da7287874761ea2da81293ca63f72f915fc0f935f548

Contents?: true

Size: 872 Bytes

Versions: 4

Compression:

Stored size: 872 Bytes

Contents

<%= content_tag :nav, html_attributes do %>
  <%= first_button if first_button %>
  <%= previous_button %>
  <% if left_page_gap? %>
    <%= content_tag :span, class: theme.apply(:ellipse, self) do %>
      <%= render FoxTail::IconBaseComponent.new("ellipsis-horizontal", class: theme.apply("ellipse/icon", self)) %>
    <% end %>
  <% end %>
  <% display_range.each do |page| %>
    <%= render FoxTail::Pagination::PageComponent.new url: page_url(page), current_page: page == current_page, theme: theme.theme(:page) do %>
      <%= page %>
    <% end %>
  <% end %>
  <% if right_page_gap? %>
    <%= content_tag :span, class: theme.apply(:ellipse, self) do %>
      <%= render FoxTail::IconBaseComponent.new("ellipsis-horizontal", class: theme.apply("ellipse/icon", self)) %>
    <% end %>
  <% end %>
  <%= next_button %>
  <%= last_button if last_button? %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fox_tail-0.2.1 app/components/fox_tail/pagination_component.html.erb
fox_tail-0.2.0 app/components/fox_tail/pagination_component.html.erb
fox_tail-0.1.1 app/components/fox_tail/pagination_component.html.erb
fox_tail-0.1.0 app/components/fox_tail/pagination_component.html.erb