Saved Searches

<% @categories.each do |category, saved_searches| %>

<% if category.present? %> <%= link_to_if SavedSearch.posts_search_available?, category.tr("_", " "), posts_path(:tags => "search:#{category}") %> (<%= link_to "rename", new_saved_search_category_change_path(:old => category) %>) <% else %> <%= link_to_if SavedSearch.posts_search_available?, SavedSearch::UNCATEGORIZED_NAME, posts_path(:tags => "search:#{SavedSearch::UNCATEGORIZED_NAME}") %> <% end %>

<% saved_searches.each do |saved_search| %> <% end %>
Tags
<%= link_to saved_search.tag_query, posts_path(:tags => saved_search.tag_query) %> <%= link_to "edit", edit_saved_search_path(saved_search) %> | <%= link_to "delete", saved_search_path(saved_search), :method => :delete, :remote => true %>
<% end %>
<%= render "secondary_links" %> <% content_for(:page_title) do %> Saved Searches - <%= Danbooru.config.app_name %> <% end %>