Add error pages for tag limit and pagination errors.
This commit is contained in:
17
app/views/static/pagination_error.html.erb
Normal file
17
app/views/static/pagination_error.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<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 <%= Danbooru.config.max_numbered_pages %>.
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<%= link_to "Go back", :back, rel: "prev" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Search Error - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
15
app/views/static/tag_limit_error.html.erb
Normal file
15
app/views/static/tag_limit_error.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<h1>Search Error</h1>
|
||||
|
||||
<p>
|
||||
<%= @message %>
|
||||
|
||||
<% unless CurrentUser.is_platinum? %>
|
||||
<%= link_to "Upgrade your account", new_user_upgrade_path %> to search for more tags at once.
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<%= link_to "Go back", :back, rel: "prev" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Search Error - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user