Class: Ez::Settings::NavCell

Inherits:
BaseCell
  • Object
show all
Defined in:
app/cells/ez/settings/nav_cell.rb

Constant Summary

Constants inherited from BaseCell

BaseCell::ACTIONS, BaseCell::CANCEL, BaseCell::DESCRIPTION, BaseCell::GROUPS, BaseCell::INTERFACES, BaseCell::KEYS, BaseCell::LABEL, BaseCell::SAVE, BaseCell::SCOPE

Instance Method Summary collapse

Methods inherited from BaseCell

#controller, #css_for, #css_map, form, #group_link, #group_path, #i18n_group_description, #i18n_group_label, #i18n_key_label, option

Methods included from RequestDispatcher

#group, #interface

Instance Method Details



5
6
7
# File 'app/cells/ez/settings/nav_cell.rb', line 5

def nav_label
  t(LABEL, scope: SCOPE, default: 'Settings')
end


9
10
11
12
13
# File 'app/cells/ez/settings/nav_cell.rb', line 9

def settings_link
  link_to nav_label,
          interface.config.default_path,
          class: css_for(:nav_menu_item, dynamic: 'settings/')
end