clarify post deletion/flag logic

This commit is contained in:
albert
2013-02-19 22:03:01 -05:00
parent 5202ee42f6
commit c5731298fb
12 changed files with 26 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ module PostAppealsHelper
html << '<ul>'
post.appeals.each do |appeal|
html << '<li>' + appeal.reason + ' - ' + link_to(appeal.creator.name, user_path(appeal.creator)) + ' ' + time_ago_in_words_tagged(appeal.created_at) + ' ago</li>'
html << '<li>' + appeal.reason + ' - ' + link_to(appeal.creator.name, user_path(appeal.creator)) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
end
html << '</ul>'

View File

@@ -10,7 +10,7 @@ module PostFlagsHelper
html << ' - ' + link_to(flag.creator.name, user_path(flag.creator))
end
html << ' ' + time_ago_in_words_tagged(flag.created_at) + ' ago</li>'
html << ' ' + time_ago_in_words_tagged(flag.created_at) + '</li>'
end
html << '</ul>'