Class: ODDB::View::ZoneNavigation

Inherits:
Navigation show all
Defined in:
src/view/navigation.rb

Direct Known Subclasses

CenteredNavigation

Constant Summary

:zone_navigation
'navigation right'

Constants inherited from Navigation

COMPONENTS, LEGACY_INTERFACE, NAV_LINK_CLASS, NAV_LINK_CSS, NAV_METHOD, SYMBOL_MAP

Instance Method Summary (collapse)

Methods inherited from Navigation

#home, #init

Methods included from ExternalLinks

#contact_link, #data_declaration, #external_link, #faq_link, #generic_definition, #help_link, #legal_note, #meddrugs_update, #wiki_link

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) build_navigation(links = [])



57
58
59
60
61
62
63
64
65
66
67
68
# File 'src/view/navigation.rb', line 57

def build_navigation(links = [])
  links = @lookandfeel.zone_navigation.sort_by { |state|
    state = case state
            when String, Symbol
              state
            else
              state.direct_event
            end
    @lookandfeel.lookup(state.to_sym).to_s.downcase
  }
  super(links)
end