link_to_user: remove unused raw_name option.
This commit is contained in:
@@ -183,7 +183,7 @@ module ApplicationHelper
|
||||
to_sentence(links, **options)
|
||||
end
|
||||
|
||||
def link_to_user(user, options = {})
|
||||
def link_to_user(user)
|
||||
return "anonymous" if user.blank?
|
||||
|
||||
user_class = "user-#{user.level_string.downcase}"
|
||||
@@ -191,12 +191,7 @@ module ApplicationHelper
|
||||
user_class += " user-post-uploader" if user.can_upload_free?
|
||||
user_class += " user-banned" if user.is_banned?
|
||||
user_class += " with-style" if CurrentUser.user.style_usernames?
|
||||
if options[:raw_name]
|
||||
name = user.name
|
||||
else
|
||||
name = user.pretty_name
|
||||
end
|
||||
link_to(name, user_path(user), :class => user_class)
|
||||
link_to(user.pretty_name, user_path(user), :class => user_class)
|
||||
end
|
||||
|
||||
def mod_link_to_user(user, positive_or_negative)
|
||||
|
||||
Reference in New Issue
Block a user