Refactor page limits to a) be explicitly listed in the User class (not hidden away in the Danbooru config) and b) explicitly depend on the CurrentUser (not implicitly by way of Danbooru.config.max_numbered_pages).
16 lines
391 B
Plaintext
16 lines
391 B
Plaintext
<% page_title "Page Limit Exceeded" %>
|
|
|
|
<h1>Search Error</h1>
|
|
|
|
<p>
|
|
<%= @message %>
|
|
|
|
<% if CurrentUser.is_platinum? %>
|
|
Try narrowing your search terms.
|
|
<% else %>
|
|
Try narrowing your search terms, or <%= link_to "upgrade your account", new_user_upgrade_path %> to go beyond page <%= CurrentUser.user.page_limit %>.
|
|
<% end %>
|
|
</p>
|
|
|
|
<%= link_to "Go back", :back, rel: "prev" %>
|