Files
danbooru/app/helpers/post_flags_helper.rb
albert 5856b105f5 stuff
2011-03-29 13:56:30 -04:00

10 lines
262 B
Ruby

module PostFlagsHelper
def post_flag_reasons(post)
post.flags.map do |flag|
content_tag("span") do
(flag.reason + " (" + link_to(flag.creator.name, user_path(flag.creator_id)) + ")").html_safe
end
end.join("; ").html_safe
end
end