order post flags and appeals
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user