Add error pages for tag limit and pagination errors.

This commit is contained in:
evazion
2019-09-09 17:19:24 -05:00
parent 62b89e1f9a
commit 347aa4b835
6 changed files with 50 additions and 4 deletions

View 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 %>

View 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 %>