This commit is contained in:
albert
2013-03-08 17:08:01 -05:00
parent 9eff846978
commit a3be5ac4d0
2 changed files with 14 additions and 3 deletions

View File

@@ -4,13 +4,20 @@ module PostFlagsHelper
html << '<ul>'
post.flags.each do |flag|
html << '<li>' + flag.reason
html << '<li>'
html << flag.reason
if CurrentUser.is_janitor?
html << ' - ' + link_to(flag.creator.name, user_path(flag.creator))
end
html << ' - ' + time_ago_in_words_tagged(flag.created_at) + '</li>'
html << ' - ' + time_ago_in_words_tagged(flag.created_at)
if flag.is_resolved?
html << ' <span class="resolved">RESOLVED</span>'
end
html << '</li>'
end
html << '</ul>'