add post previews to user profile, improved ui for tag subscriptions

This commit is contained in:
albert
2013-02-21 18:18:08 -05:00
parent d7fb091bd1
commit 23c0cb5529
9 changed files with 234 additions and 96 deletions

View File

@@ -11,7 +11,7 @@
<h1>Tags</h1>
<%= @post_set.presenter.tag_list_html(self) %>
</section>
<%= render "posts/partials/index/blacklist" %>
<%= render "posts/partials/index/related" %>
</aside>

View File

@@ -1,8 +1,12 @@
<section id="related-box">
<h1>Related Searches</h1>
<h1>Related</h1>
<ul id="related-list">
<% if @post_set.has_deleted? %>
<li><%= link_to "Deleted", posts_path(:tags => "#{params[:tags]} status:deleted") %></li>
<li><%= link_to "Deleted posts", posts_path(:tags => "#{params[:tags]} status:deleted") %></li>
<% end %>
<% if @post_set.is_tag_subscription? %>
<li><%= link_to "Edit tag subscription", tag_subscriptions_path %></li>
<% end %>
</ul>
</section>