<% @page_title = "Posts that #{h @user.display_name} is monitoring" -%>

<%= link_to @user.display_name, user_path(@user) %>'<%= 's '+:monitored_topics.l %>

<%= @page_title %>

<%= link_to fa_icon("rss"), monitored_all_sb_posts_path(:user_id => @user, :format => 'rss') %> <%= :post_found.l(:count => @posts.size) %>

<% for post in @posts do %> <% unless post == @posts.to_a.first %> <% end %> <% end %>
 
<% if post.created_at > Time.now.utc-24.hours%> <%= time_ago_in_words(post.created_at).sub(/about /, '') %> ago <% else %> <%= post.created_at.strftime("%b %e, %Y")%> <% end %>
<%= avatar_for post.user %> <%= link_to truncate(h(post.user.display_name), :length => 15), user_path(post.user), :class => (post.user == @posts.to_a.first.user ? "admin" : nil) %> <%= pluralize post.user.sb_posts_count, 'post' %>

<%= :topic.l %> <%= link_to h(post.topic_title), forum_topic_path(post.forum_id, post.topic_id) %>

<%= post.body_html %>
<%= paginate @posts, :theme => 'bootstrap' %>