Kill trailing whitespace in ruby files
This commit is contained in:
@@ -2,24 +2,24 @@ module PostFlagsHelper
|
||||
def post_flag_reasons(post)
|
||||
html = []
|
||||
html << '<ul>'
|
||||
|
||||
|
||||
post.flags.each do |flag|
|
||||
html << '<li>'
|
||||
html << DText.parse_inline(flag.reason).html_safe
|
||||
|
||||
|
||||
if CurrentUser.is_janitor?
|
||||
html << ' - ' + link_to(flag.creator.name, user_path(flag.creator))
|
||||
end
|
||||
|
||||
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>'
|
||||
html.join("\n").html_safe
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user