Module: Content::HomeHelper

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/content/home_helper.rb

Instance Method Summary collapse

Instance Method Details

Adds a content link to the More menu



8
9
10
11
12
13
14
15
16
17
# File 'app/models/concerns/content/home_helper.rb', line 8

def setting_options_with_content_link
  choices       = setting_options_without_content_link
  content_group =
    [
      [_('Products'), :"content/products"],
      [_('Repositories'), :"content/repositories"],
      [_('Gpg keys'), :"content/gpg_keys"]
  ]
  choices.insert(3, [:divider], [:group, _("Content"), content_group])
end