revamp saved search implementation

This commit is contained in:
r888888888
2017-03-15 15:36:48 -07:00
parent 79c0dc3647
commit da06bee0ab
24 changed files with 307 additions and 257 deletions

View File

@@ -52,7 +52,11 @@
<% end %>
<% end %>
<%= render "posts/partials/common/secondary_links" %>
<% if params[:tags] =~ /search:/ %>
<%= render "saved_searches/secondary_links" %>
<% else %>
<%= render "posts/partials/common/secondary_links" %>
<% end %>
<%= post_search_count_js %>
</div>

View File

@@ -7,10 +7,6 @@
<li><%= link_to "Manage subscriptions", tag_subscriptions_path %></li>
<% end %>
<% if @post_set.is_saved_search? %>
<li><%= link_to "Manage saved searches", saved_searches_path %></li>
<% end %>
<li><%= link_to "Random post", random_posts_path(:tags => params[:tags]), :id => "random-post", :rel => "nofollow" %></li>
<li><%= link_to "Mobile version", mobile_posts_path(:tags => params[:tags]) %></li>