views: refactor post flag and appeal reasons.

* Prefer partials over helpers.
* Add css classes to flag/appeal reason lists.
* Wrap dtext in span.prose container.
This commit is contained in:
evazion
2019-09-18 03:20:26 -05:00
parent 49f91a6100
commit 312adb772d
8 changed files with 43 additions and 59 deletions

View File

@@ -0,0 +1,15 @@
<ul class="post-appeal-reasons">
<% appeals.each do |appeal| %>
<li class="post-appeal-reason">
<span class="prose"><%= format_text(appeal.reason, inline: true) %></span>
- <%= link_to_user(appeal.creator) %>
<% if CurrentUser.is_moderator? %>
(<%= link_to_ip(appeal.creator_ip_addr) %>)
<% end %>
- <%= time_ago_in_words_tagged(appeal.created_at) %>
</li>
<% end %>
</ul>