Class: ODDB::View::CountryNavigation

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

Constant Summary

COMPONENTS =
{
  [0,0] => :oddb_de,
  [1,0] => 'navigation_divider',
  [2,0] => :oddb_chde,
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details



77
78
79
80
81
82
# File 'src/view/navigation.rb', line 77

def link(key, model)
  link = HtmlGrid::Link.new('oddb_%s' % key, model, @session, self)
  link.href = "http://%s.oddb.org/" % key
  link.css_class = 'navigation'
  link
end

- (Object) oddb_chde(model)



83
84
85
# File 'src/view/navigation.rb', line 83

def oddb_chde(model)
  link(:chde, model)
end

- (Object) oddb_de(model)



86
87
88
# File 'src/view/navigation.rb', line 86

def oddb_de(model)
  link(:de, model)
end