add postarchive model, fixes #2831: Replace Subscriptions Link With Search:All Link

This commit is contained in:
Albert Yi
2017-01-11 11:32:29 -08:00
parent f1ffd6d9c9
commit 0ab45ebc42
8 changed files with 63 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
<li><%= link_to "Favorites", favorites_path %></li>
<li><%= link_to "Favorite groups", favorite_groups_path %></li>
<% if CurrentUser.has_saved_searches? %>
<li><%= link_to "Saved searches", saved_searches_path %></li>
<li><%= link_to "Saved searches", posts_path(:tags => "search:all") %></li>
<% end %>
<li><%= link_to "Subscriptions", posts_path(:tags => "sub:#{CurrentUser.name}") %></li>
<% end %>

View File

@@ -4,7 +4,11 @@
<li><%= link_to "Deleted posts", posts_path(:tags => "#{params[:tags]} status:deleted"), :rel => "nofollow" %></li>
<% if @post_set.is_tag_subscription? %>
<li><%= link_to "Edit subscriptions", tag_subscriptions_path %></li>
<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>