Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 461
- Log:
Fix Ticket #334.
- Author:
- rool
- Date:
- Mon Feb 17 09:55:22 +0000 2014
- Size:
- 2541 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 | <div style="float: right; white-space: nowrap"> |
17 | <% form_tag( @posts, { :method => 'get' } ) do %> |
18 | <%= hidden_field_tag( :q, params[ :q ] ) if params.has_key? :q %> |
19 | <small> |
20 | Posts per page: |
21 | <%= |
22 | select_tag( |
23 | 'posts_per_page', |
24 | options_for_select( |
25 | [ '25', '50', '100' ], |
26 | params[ :posts_per_page ] |
27 | ), |
28 | :id => nil |
29 | ) |
30 | %> |
31 | </small> |
32 | <%= submit_tag( 'Change', { :name => 'posts_per_page_change', :style => 'font-size: 9pt' } ) %> |
33 | <% end %> |
34 | </div> |
35 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
36 | <% end -%> |
37 | |
38 | <table border="0" cellspacing="0" cellpadding="0" class="posts wide"> |
39 | <% for post in @posts do %> |
40 | <% unless post == @posts.first %> |
41 | <tr class="spacer"> |
42 | <td colspan="2"> </td> |
43 | </tr> |
44 | <% end %> |
45 | <tr class="post hentry" id="<%= post.dom_id %>"> |
46 | <td class="author vcard"> |
47 | <div class="date"> |
48 | <abbr class="updated" title="<%= post.created_at.xmlschema %>"> |
49 | <% if post.created_at > Time.now.utc-24.hours%> |
50 | <%= time_ago_in_words(post.created_at).sub(/about /, '') %> |
51 | <% else %> |
52 | <%= post.created_at.strftime("%b %e, %Y")%> |
53 | <% end %> |
54 | </abbr> |
55 | </div> |
56 | |
57 | <%= avatar_for @users[post.user_id] %> |
58 | <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> |
59 | <span class="posts"><%= pluralize @users[post.user_id].posts_count, 'post' %></span> |
60 | </td> |
61 | <td class="body entry-content"> |
62 | <p class="topic"> |
63 | Topic: <%= link_to h(post.forum_name), forum_path(post.forum_id) %> / |
64 | <%= link_to h(post.topic_title), topic_path(post.forum_id, post.topic_id) %> |
65 | </p> |
66 | |
67 | <%= post.body_html %> |
68 | </td> |
69 | </tr> |
70 | |
71 | <% end %> |
72 | </table> |
73 | |
74 | <% if @post_pages and @post_pages.current.next %> |
75 | <p style="float:right;"><%= link_to "Next page", { :page => @post_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %></p> |
76 | <% end %> |
77 | |
78 | <% if @post_pages.page_count > 1 -%> |
79 | <p class="pages">Pages: <strong><%= pagination_links @post_pages, :window_size => 10, :params => params %></strong></p> |
80 | <% end -%> |