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:
- 2055 Bytes
1 | <% @page_title = search_posts_title -%> |
2 | |
3 | <h1> |
4 | <% if params[:q].blank? -%> |
5 | <%= @page_title %> |
6 | <% else -%> |
7 | Searching for '<%= h params[:q] %>' |
8 | <% end -%> |
9 | </h1> |
10 | <p class="subtitle"> |
11 | <%= feed_icon_tag @page_title, search_posts_path(true) %> |
12 | <%= pluralize(@post_pages.item_count,"post") %> found |
13 | </p> |
14 | |
15 | <% if @post_pages.page_count > 1 -%> |
16 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
17 | <% end -%> |
18 | |
19 | <table border="0" cellspacing="0" cellpadding="0" class="posts wide"> |
20 | <% for post in @posts do %> |
21 | <% unless post == @posts.first %> |
22 | <tr class="spacer"> |
23 | <td colspan="2"> </td> |
24 | </tr> |
25 | <% end %> |
26 | <tr class="post hentry" id="<%= post.dom_id %>"> |
27 | <td class="author vcard"> |
28 | <div class="date"> |
29 | <abbr class="updated" title="<%= post.created_at.xmlschema %>"> |
30 | <% if post.created_at > Time.now.utc-24.hours%> |
31 | <%= time_ago_in_words(post.created_at).sub(/about /, '') %> ago |
32 | <% else %> |
33 | <%= post.created_at.strftime("%b %e, %Y")%> |
34 | <% end %> |
35 | </abbr> |
36 | </div> |
37 | |
38 | <%= avatar_for @users[post.user_id] %> |
39 | <span class="fn"><%= link_to h(@users[post.user_id].display_name), user_path(post.user_id), :class => (@users[post.user_id] == @users[@posts.first.user_id] ? "admin" : nil) %></span> |
40 | <span class="posts"><%= pluralize @users[post.user_id].posts_count, 'post' %></span> |
41 | </td> |
42 | <td class="body entry-content"> |
43 | <p class="topic"> |
44 | Topic: <%= link_to h(post.forum_name), forum_path(post.forum_id) %> / |
45 | <%= link_to h(post.topic_title), topic_path(post.forum_id, post.topic_id) %> |
46 | </p> |
47 | |
48 | <%= post.body_html %> |
49 | </td> |
50 | </tr> |
51 | |
52 | <% end %> |
53 | </table> |
54 | |
55 | <% if @post_pages and @post_pages.current.next %> |
56 | <p style="float:right;"><%= link_to "Next page", { :page => @post_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %></p> |
57 | <% end %> |
58 | |
59 | <% if @post_pages.page_count > 1 -%> |
60 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
61 | <% end -%> |