Sha256: 84618d0dff19eea93070d59806e0487815330febb469096aedf45cbc5c086833

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

#!/usr/bin/env ruby
# Html::View::Foot -- de.oddb.org -- 02.11.2006 -- hwyss@ywesee.com

require 'htmlgrid/divcomposite'
require 'oddb/html/view/navigation'

module ODDB
  module Html
    module View
class Foot < HtmlGrid::DivComposite
  COMPONENTS = { 
    [0,0] => HelpLinks, 
    [0,1] => :copyright, 
  }
  CSS_MAP = ['navigation', 'links']
  def copyright(model)
    [ lgpl_license(model), ' ', Time.now.year, ', ',
      ywesee_link(model), ', ', oddb_version(model) ]
  end
  def lgpl_license(model)
    link = HtmlGrid::Link.new(:lgpl_license, model, @session, self)
    link.href = 'http://www.gnu.org/copyleft/lesser.html'
    link
  end
  def oddb_version(model)
    link = HtmlGrid::Link.new(:oddb_version, model, @session, self)
    link.href = 'http://scm.ywesee.com/?p=de.oddb.org;a=summary'
    link.set_attribute('title', ODDB_VERSION)
    link
  end
  def ywesee_link(model)
    link = HtmlGrid::Link.new(:ywesee, model, @session, self)
    link.href = 'http://www.ywesee.com'
    link
  end
end
class NavigationFoot < HtmlGrid::DivComposite
  COMPONENTS = { 
    [0,0] => Navigation, 
    [0,1] => CountryLinks, 
  }
  CSS_MAP = ['navigation', 'links']
  def init
    if(@lookandfeel.disabled? :country_links)
      components.update([0,1] => "&nbsp;")
    end
    super
  end
end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
de.oddb-2.0.1 lib/oddb/html/view/foot.rb
ramaze.ch.oddb.org-1.0.0 lib/oddb/html/view/foot.rb
de.oddb-2.0.0 lib/oddb/html/view/foot.rb