add saved search gallery link, can only view your own saved searches, normalize saved search categories
This commit is contained in:
6
app/views/saved_searches/_secondary_links.html.erb
Normal file
6
app/views/saved_searches/_secondary_links.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= link_to "Gallery", posts_path(:tags => "search:all") %></li>
|
||||
<li><%= link_to "Listing", saved_searches_path %></li>
|
||||
</menu>
|
||||
<% end %>
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "users/secondary_links" %>
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Edit Saved Search - <%= Danbooru.config.app_name %>
|
||||
|
||||
@@ -3,7 +3,13 @@
|
||||
<h1>Saved Searches</h1>
|
||||
|
||||
<% @categories.each do |category, saved_searches| %>
|
||||
<h2><%= category.present? ? category : "Uncategorized" %></h2>
|
||||
<h2>
|
||||
<% if category.present? %>
|
||||
<%= link_to category, posts_path(:tags => "search:#{category}") %>
|
||||
<% else %>
|
||||
Uncategorized
|
||||
<% end %>
|
||||
</h2>
|
||||
<table class="striped" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -27,7 +33,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "users/secondary_links" %>
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Saved Searches - <%= Danbooru.config.app_name %>
|
||||
|
||||
Reference in New Issue
Block a user