pagination: remove switch_to_sequential option.
This commit is contained in:
@@ -20,8 +20,8 @@ module PaginationHelper
|
|||||||
params[:page] =~ /[ab]/ || records.current_page >= Danbooru.config.max_numbered_pages
|
params[:page] =~ /[ab]/ || records.current_page >= Danbooru.config.max_numbered_pages
|
||||||
end
|
end
|
||||||
|
|
||||||
def numbered_paginator(records, switch_to_sequential = true)
|
def numbered_paginator(records)
|
||||||
if use_sequential_paginator?(records) && switch_to_sequential
|
if use_sequential_paginator?(records)
|
||||||
return sequential_paginator(records)
|
return sequential_paginator(records)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<%= render "listing" %>
|
<%= render "listing" %>
|
||||||
|
|
||||||
<%= numbered_paginator(@artist_versions, :search_count => params[:search]) %>
|
<%= numbered_paginator(@artist_versions) %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<%= render "tag_relationships/search", url: tag_aliases_path %>
|
<%= render "tag_relationships/search", url: tag_aliases_path %>
|
||||||
<%= render "listing", :tag_aliases => @tag_aliases %>
|
<%= render "listing", :tag_aliases => @tag_aliases %>
|
||||||
|
|
||||||
<%= numbered_paginator(@tag_aliases) if @tag_aliases.respond_to?(:current_page) %>
|
<%= numbered_paginator(@tag_aliases) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user