diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d268e1007..e99ff4eee 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1311,6 +1311,9 @@ module ApplicationHelper def show_watcher_profile(obj) count = 0 html = '' + if User.watched_by(obj.id).count == 0 + 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}") count = count + 1 @@ -1333,6 +1336,9 @@ module ApplicationHelper def show_fans_picture(obj) html = '' count = 0 + if obj.watcher_users.count == 0 + 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}") count = count + 1