cirandas.net

ref: master

app/models/fans_block.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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