replace old user links with new format

This commit is contained in:
Toks
2013-04-04 23:16:28 -04:00
parent f1b5f83a3e
commit 8b33cac661
30 changed files with 38 additions and 38 deletions

View File

@@ -4,7 +4,7 @@ module PostAppealsHelper
html << '<ul>'
post.appeals.each do |appeal|
html << '<li>' + DText.parse_inline(appeal.reason).html_safe + ' - ' + link_to(appeal.creator.name, user_path(appeal.creator), { :class => appeal.creator.level_class }) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
html << '<li>' + DText.parse_inline(appeal.reason).html_safe + ' - ' + link_to_user(appeal.creator) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
end
html << '</ul>'

View File

@@ -8,7 +8,7 @@ module PostFlagsHelper
html << DText.parse_inline(flag.reason).html_safe
if CurrentUser.is_janitor?
html << ' - ' + link_to(flag.creator.name, user_path(flag.creator), { :class => flag.creator.level_class })
html << ' - ' + link_to_user(flag.creator)
end
html << ' - ' + time_ago_in_words_tagged(flag.created_at)