order post flags and appeals
This commit is contained in:
@@ -9,7 +9,7 @@ class PostAppealsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@search = PostAppeal.search(params[:search])
|
@search = PostAppeal.search(params[:search]).order("id desc")
|
||||||
@post_appeals = @search.paginate(params[:page])
|
@post_appeals = @search.paginate(params[:page])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class PostFlagsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@search = PostFlag.search(params[:search])
|
@search = PostFlag.search(params[:search]).order("id desc")
|
||||||
@post_flags = @search.paginate(params[:page])
|
@post_flags = @search.paginate(params[:page])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<th width="1%"></th>
|
<th width="1%"></th>
|
||||||
<th>Creator</th>
|
<th>Creator</th>
|
||||||
<th>Reason</th>
|
<th>Reason</th>
|
||||||
|
<th>Resolved</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -15,6 +16,7 @@
|
|||||||
<td><%= PostPresenter.preview(post_flag.post) %></td>
|
<td><%= PostPresenter.preview(post_flag.post) %></td>
|
||||||
<td><%= link_to post_flag.creator.name, user_path(post_flag.creator) %></td>
|
<td><%= link_to post_flag.creator.name, user_path(post_flag.creator) %></td>
|
||||||
<td><%= format_text post_flag.reason %></td>
|
<td><%= format_text post_flag.reason %></td>
|
||||||
|
<td><%= post_flag.is_resolved? %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user