appeals: only show current appeal on appealed posts.
* Only show the current pending appeal in the "This post was appealed" notice. Don't show old appeals. * Don't show both the "This post was deleted" and the "This post was appealed" notice on appealed posts. Only show the "This post was appealed" notice. * Show "no reason" if no appeal reason was given.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<ul class="post-appeal-reasons list-bulleted">
|
||||
<% appeals.each do |appeal| %>
|
||||
<li class="post-appeal-reason">
|
||||
<ul class="post-appeal-reason list-bulleted">
|
||||
<li>
|
||||
<% if appeal.reason.present? %>
|
||||
<span class="prose"><%= format_text(appeal.reason, inline: true) %></span>
|
||||
- <%= link_to_user(appeal.creator) %>
|
||||
- <%= time_ago_in_words_tagged(appeal.created_at) %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<span class="prose"><em>no reason</em></span>
|
||||
<% end %>
|
||||
|
||||
(<%= link_to_user(appeal.creator) %>, <%= time_ago_in_words_tagged(appeal.created_at) %>)
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user