changes to flags/appeals

This commit is contained in:
albert
2011-12-15 10:57:25 -05:00
parent 3463e45675
commit 4e99ca2613
3 changed files with 10 additions and 13 deletions

View File

@@ -4,7 +4,13 @@ module PostFlagsHelper
html << '<ul>'
post.flags.each do |flag|
html << '<li>' + flag.reason + ' - ' + link_to(flag.creator.name, user_path(flag.creator)) + ' ' + time_ago_in_words(flag.created_at) + ' ago</li>'
html << '<li>' + flag.reason
if CurrentUser.is_janitor?
html << ' - ' + link_to(flag.creator.name, user_path(flag.creator))
end
html << ' ' + time_ago_in_words(flag.created_at) + ' ago</li>'
end
html << '</ul>'