Module: ContentHomeHelperPatch::InstanceMethods

Defined in:
lib/content_home_helper_patch.rb

Instance Method Summary collapse

Instance Method Details

Adds a content link to the More menu



12
13
14
15
16
17
18
19
20
21
# File 'lib/content_home_helper_patch.rb', line 12

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