14 lines
362 B
Ruby
14 lines
362 B
Ruby
module PostAppealsHelper
|
|
def post_appeal_reasons(post)
|
|
html = []
|
|
html << '<ul>'
|
|
|
|
post.appeals.each do |appeal|
|
|
html << '<li>' + DText.parse_inline(appeal.reason).html_safe + ' - ' + link_to_user(appeal.creator) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
|
|
end
|
|
|
|
html << '</ul>'
|
|
html.join("\n").html_safe
|
|
end
|
|
end
|