cirandas.net

ref: master

app/models/main_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
24
25
26
27
28
29
class MainBlock < Block

  def self.description
    _('Main content')
  end

  def help
    _('This block presents the main content of your pages.')
  end

  def main?
    true
  end

  def cacheable?
    false
  end

  def display_options_available
    ['always', 'except_home_page']
  end

  def display_user_options
    @display_user_options = {
      'all'            => _('All users')
    }
  end

end