Files
danbooru/app/helpers/post_flags_helper.rb

10 lines
312 B
Ruby

module PostFlagsHelper
def post_flag_reason(post)
post.flags.map do |flag|
content_tag("span", :class => "flag-and-reason-count") do
flag.reason + " (" + link_to(flag.creator.name, :controller => "user", :action => "show", :id => flag.creator_id) + ")"
end
end.join("; ")
end
end