Class: ODDB::View::ChangeLog

Inherits:
HtmlGrid::List show all
Defined in:
src/view/changelog.rb

Constant Summary

SORT_DEFAULT =
:time
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0,4] =>  'list',
}
COMPONENTS =
{
  [0,0] => :time,
  [1,0] => :chapter,
  [2,0] => :email,
  [3,0] => :language,
}
OMIT_HEADER =
true
DEFAULT_CLASS =
HtmlGrid::Value
LEGACY_INTERFACE =
false
SORT_HEADER =
false
SORT_REVERSE =
true
SYMBOL_MAP =
{
  :email => HtmlGrid::MailLink,
}

Constants inherited from HtmlGrid::List

BACKGROUND_SUFFIX

Instance Method Summary (collapse)

Instance Method Details

- (Object) chapter(model)



30
31
32
33
34
35
36
37
38
39
# File 'src/view/changelog.rb', line 30

def chapter(model)
  link = HtmlGrid::Link.new(:chapter, model, @session, self)
  link.value = @lookandfeel.lookup("fi_#{model.chapter}")
  args = {
    :pointer => @container.model.pointer,
    :chapter => model.chapter,
  }
  link.href = @lookandfeel._event_url(:resolve, args)
  link
end

- (Object) language(model)



40
41
42
# File 'src/view/changelog.rb', line 40

def language(model)
  @lookandfeel.lookup(model.language)
end

- (Object) time(model)



43
44
45
# File 'src/view/changelog.rb', line 43

def time(model)
  model.time.strftime(@lookandfeel.lookup(:time_format_long))
end