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.
14 lines
380 B
Plaintext
14 lines
380 B
Plaintext
<ul class="post-flag-reasons list-bulleted">
|
|
<% flags.each do |flag| %>
|
|
<li class="post-flag-reason">
|
|
<span class="prose"><%= format_text(flag.reason, inline: true) %></span>
|
|
|
|
<% if policy(flag).can_view_flagger? %>
|
|
- <%= link_to_user(flag.creator) %>
|
|
<% end %>
|
|
|
|
- <%= time_ago_in_words_tagged(flag.created_at) %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|