|
|
|
@ -1295,7 +1295,7 @@ module ApplicationHelper
|
|
|
|
|
def show_watcher_profile(obj)
|
|
|
|
|
html = ''
|
|
|
|
|
for user in User.watched_by(obj.id)
|
|
|
|
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar")
|
|
|
|
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
|
|
|
|
end
|
|
|
|
|
html.html_safe
|
|
|
|
|
end
|
|
|
|
@ -1304,7 +1304,7 @@ module ApplicationHelper
|
|
|
|
|
def show_fans_picture(obj)
|
|
|
|
|
html = ''
|
|
|
|
|
for user in obj.watcher_users
|
|
|
|
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar")
|
|
|
|
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
|
|
|
|
end
|
|
|
|
|
html.html_safe
|
|
|
|
|
end
|
|
|
|
|