|
|
|
@ -1354,7 +1354,7 @@ module ApplicationHelper
|
|
|
|
|
html << (content_tag "span", l(:label_no_current_watchers))
|
|
|
|
|
end
|
|
|
|
|
for user in User.watched_by(obj.id)
|
|
|
|
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
|
|
|
|
html << (image_tag(url_to_avatar(user), :class => "avatar"))
|
|
|
|
|
count = count + 1
|
|
|
|
|
if count >= 12
|
|
|
|
|
break
|
|
|
|
@ -1379,7 +1379,7 @@ module ApplicationHelper
|
|
|
|
|
html << (content_tag "span", l(:label_no_current_fans))
|
|
|
|
|
end
|
|
|
|
|
for user in obj.watcher_users
|
|
|
|
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
|
|
|
|
html << (image_tag(url_to_avatar(user), :class => "avatar"))
|
|
|
|
|
count = count + 1
|
|
|
|
|
if count >= 12
|
|
|
|
|
break
|
|
|
|
@ -1393,7 +1393,7 @@ module ApplicationHelper
|
|
|
|
|
html = ''
|
|
|
|
|
count = 0
|
|
|
|
|
for user in User.watched_by(user.id)
|
|
|
|
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
|
|
|
|
html << (image_tag(url_to_avatar(user), :class => "avatar"))
|
|
|
|
|
count = count + 1
|
|
|
|
|
if count >= 12
|
|
|
|
|
break
|
|
|
|
|