order post flags and appeals

This commit is contained in:
albert
2013-02-21 11:44:03 -05:00
parent 7ccf663f48
commit 3c68d64540
3 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ class PostAppealsController < ApplicationController
end
def index
@search = PostAppeal.search(params[:search])
@search = PostAppeal.search(params[:search]).order("id desc")
@post_appeals = @search.paginate(params[:page])
end

View File

@@ -9,7 +9,7 @@ class PostFlagsController < ApplicationController
end
def index
@search = PostFlag.search(params[:search])
@search = PostFlag.search(params[:search]).order("id desc")
@post_flags = @search.paginate(params[:page])
end

View File

@@ -7,6 +7,7 @@
<th width="1%"></th>
<th>Creator</th>
<th>Reason</th>
<th>Resolved</th>
</tr>
</thead>
<tbody>
@@ -15,6 +16,7 @@
<td><%= PostPresenter.preview(post_flag.post) %></td>
<td><%= link_to post_flag.creator.name, user_path(post_flag.creator) %></td>
<td><%= format_text post_flag.reason %></td>
<td><%= post_flag.is_resolved? %></td>
</tr>
<% end %>
</tbody>