fans_block.rb
360 Bytes
class FansBlock < ProfileListBlock
def self.description
_('Displays the people who like the enterprise')
end
def default_title
n_('{#} fan', '{#} fans', profile_count)
end
def help
_('This block presents the fans of an enterprise.')
end
def profiles
owner.fans
end
def profile_count
profiles.visible.count
end
end