Class: BBMB::Html::View::CopyLeft
- Inherits:
-
HtmlGrid::DivComposite
- Object
- HtmlGrid::DivComposite
- BBMB::Html::View::CopyLeft
- Defined in:
- lib/bbmb/html/view/copyleft.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => :lgpl, [1,0] => ', ', [2,0] => :current_year, [3,0] => ' ', [4,0] => :ywesee, [5,0] => ' ', [6,0] => :bbmb_version, }
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.external_link(key, url) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/bbmb/html/view/copyleft.rb', line 11 def CopyLeft.external_link(key, url) define_method(key) { |model| link = HtmlGrid::Link.new(key, model, @session, self) link.href = url link } end |
Instance Method Details
#bbmb_version(model) ⇒ Object
33 34 35 36 37 |
# File 'lib/bbmb/html/view/copyleft.rb', line 33 def bbmb_version(model) link = version(model) link.set_attribute('title', VERSION) link end |
#current_year(model) ⇒ Object
30 31 32 |
# File 'lib/bbmb/html/view/copyleft.rb', line 30 def current_year(model) Time.now.year.to_s end |