% @page_title = "Posts that #{h @user.display_name} is monitoring" -%> <% content_for :right do %>
<%= feed_icon_tag @page_title, formatted_monitored_posts_path(:user_id => @user, :format => 'rss') %> <%= pluralize(@post_pages.item_count,"post") %> found
<% if @post_pages.page_count > 1 -%>Pages: <%= pagination_links @post_pages, :window_size => 10, :params => params %>
<% 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 h(post.user.display_name), user_path(post.user), :class => (post.user == @posts.first.user ? "admin" : nil) %>
<%= pluralize post.user.posts_count, 'post' %>
|
Topic: <%= link_to h(post.topic_title), topic_path(post.forum_id, post.topic_id) %> <%= post.body_html %> |
<%= link_to "Next page", { :page => @post_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %>
<% end %> <% if @post_pages.page_count > 1 -%>Pages: <%= pagination_links @post_pages, :window_size => 10, :params => params %>
<% end -%>