Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 311
- Log:
Rails and Gem upgrades for the March 2011 site update caused problems
with 'truncate' calls in the forum. Display name truncation in these
contexts is unnecessary anyway, so I've removed the truncate calls.
- Author:
- rool
- Date:
- Fri Mar 18 14:19:08 +0000 2011
- Size:
- 2197 Bytes
1 | <% @page_title = "Posts that #{h @user.display_name} is monitoring" -%> |
2 | |
3 | <% content_for :right do %> |
4 | |
5 | <h4><%= link_to @user.display_name, user_path(@user) %>'s Monitored Topics</h4> |
6 | <ul class="flat"> |
7 | <% @user.monitored_topics.find(:all, :limit => 25).each do |topic| %> |
8 | <li><%= link_to topic.title, topic_path(topic.forum_id, topic) %></li> |
9 | <% end %> |
10 | </ul> |
11 | |
12 | <% end -%> |
13 | |
14 | <h1><%= @page_title %></h1> |
15 | <p class="subtitle"> |
16 | <%= feed_icon_tag @page_title, formatted_monitored_posts_path(:user_id => @user, :format => 'rss') %> |
17 | <%= pluralize(@post_pages.item_count,"post") %> found |
18 | </p> |
19 | |
20 | <% if @post_pages.page_count > 1 -%> |
21 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
22 | <% end -%> |
23 | |
24 | <table border="0" cellspacing="0" cellpadding="0" class="posts wide"> |
25 | <% for post in @posts do %> |
26 | <% unless post == @posts.first %> |
27 | <tr class="spacer"> |
28 | <td colspan="2"> </td> |
29 | </tr> |
30 | <% end %> |
31 | <tr class="post hentry" id="<%= post.dom_id %>"> |
32 | <td class="author vcard"> |
33 | <div class="date"> |
34 | <abbr class="updated" title="<%= post.created_at.xmlschema %>"> |
35 | <% if post.created_at > Time.now.utc-24.hours%> |
36 | <%= time_ago_in_words(post.created_at).sub(/about /, '') %> ago |
37 | <% else %> |
38 | <%= post.created_at.strftime("%b %e, %Y")%> |
39 | <% end %> |
40 | </abbr> |
41 | </div> |
42 | |
43 | <%= avatar_for post.user %> |
44 | <span class="fn"><%= link_to h(post.user.display_name), user_path(post.user), :class => (post.user == @posts.first.user ? "admin" : nil) %></span> |
45 | <span class="posts"><%= pluralize post.user.posts_count, 'post' %></span> |
46 | </td> |
47 | <td class="body entry-content"> |
48 | <p class="topic">Topic: <%= link_to h(post.topic_title), topic_path(post.forum_id, post.topic_id) %></p> |
49 | |
50 | <%= post.body_html %> |
51 | </td> |
52 | </tr> |
53 | |
54 | <% end %> |
55 | </table> |
56 | |
57 | <% if @post_pages and @post_pages.current.next %> |
58 | <p style="float:right;"><%= link_to "Next page", { :page => @post_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %></p> |
59 | <% end %> |
60 | |
61 | <% if @post_pages.page_count > 1 -%> |
62 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
63 | <% end -%> |