flags/appeals: replace is_resolved flag with statuses.
Replace references to the `is_resolved` field with the `status` field. Post flags were marked as resolved when a post was approved (but not when the post was deleted because it went unapproved). The status field supercedes the resolved field.
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
<%= f.input :post_tags_match, label: "Tags", input_html: { value: params[:search][:post_tags_match], data: { autocomplete: "tag-query" } } %>
|
||||
<%= f.input :post_id, label: "Post ID", input_html: { value: params[:search][:post_id] } %>
|
||||
<%= f.input :creator_name, label: "Creator", input_html: { value: params[:search][:creator_name], data: { autocomplete: "user" } } %>
|
||||
<%= f.input :is_resolved, label: "Resolved?", collection: [["Yes", true], ["No", false]], include_blank: true, selected: params[:search][:is_resolved] %>
|
||||
<%= f.input :status, collection: PostAppeal.statuses, include_blank: true, selected: params[:search][:status] %>
|
||||
<%= f.submit "Search" %>
|
||||
<% end %>
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
<% t.column "Appeals", width: "1%" do |post_appeal| %>
|
||||
<%= link_to post_appeal.post.appeals.size, post_appeals_path(search: { post_id: post_appeal.post_id }) %>
|
||||
<% end %>
|
||||
<% t.column "Resolved?", width: "5%" do |post_appeal| %>
|
||||
<%= link_to post_appeal.is_resolved.to_s, post_appeals_path(search: params[:search].merge(is_resolved: post_appeal.is_resolved)) %>
|
||||
<% t.column "Status", width: "5%" do |post_appeal| %>
|
||||
<%= link_to post_appeal.status, post_appeals_path(search: { status: post_appeal.status }) %>
|
||||
<% end %>
|
||||
<% t.column "Uploaded", width: "15%" do |post_appeal| %>
|
||||
<%= compact_time post_appeal.post.created_at %>
|
||||
|
||||
Reference in New Issue
Block a user