Class: ODDB::View::Custom::OekkHead

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

Constant Summary

CSS_CLASS =
'oekk-head'
COMPONENTS =
{
  [0,0,0] =>  :oekk_department,
  [0,0,1] =>  :oekk_title,

}
CSS_MAP =
{
  [0,0] =>  'oekk-head',
}
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) language_chooser(model)



23
24
25
# File 'src/view/custom/head.rb', line 23

def language_chooser(model)
  LanguageChooser.new(@lookandfeel.languages, @session, self)
end

- (Object) oekk_department(model)



26
27
28
29
30
31
# File 'src/view/custom/head.rb', line 26

def oekk_department(model)
  div = HtmlGrid::Div.new(model, @session, self)
  div.value = @lookandfeel.lookup(:oekk_department)
  div.css_class = 'oekk-department'
  div
end

- (Object) oekk_logo(model)



32
33
34
35
36
37
38
39
40
# File 'src/view/custom/head.rb', line 32

def (model)
  link = HtmlGrid::Link.new(:oekk_logo, model, @session, self)
  img = HtmlGrid::Image.new(:oekk_logo, model, @session, self)
  img.set_attribute('src', 
    'http://www.oekk.ch/_img/img_oekk_logo_oddb.gif')
  link.value = img
  link.href = 'http://www.oekk.ch'
  link
end

- (Object) oekk_title(model)



41
42
43
44
45
46
# File 'src/view/custom/head.rb', line 41

def oekk_title(model)
  div = HtmlGrid::Div.new(model, @session, self)
  div.value = @lookandfeel.lookup(:oekk_title)
  div.css_class = 'oekk-title'
  div
end