class YDIM::Html::View::Template

Constants

COMPONENTS
CSS_MAP
DIV_CLASS
LEGACY_INTERFACE

Public Instance Methods

content(model) click to toggle source
Calls superclass method
# File lib/ydim/html/view/template.rb, line 25
def content(model)
        @content ||= super
end
lgpl_license(model) click to toggle source
# File lib/ydim/html/view/template.rb, line 33
def lgpl_license(model)
        link = standard_link(:lgpl_license, model)
        link.href = 'http://www.gnu.org/copyleft/lesser.html'
        link
end
other_html_headers(context) click to toggle source
Calls superclass method
# File lib/ydim/html/view/template.rb, line 38
def other_html_headers(context)
        res = super
        ['dojo', 'ydim'].each { |name|
                properties = {
                        "language"  =>       "JavaScript",
                        "type"                      => "text/javascript",
                        "src"                               => @lookandfeel.resource_global(:javascript, "#{name}.js"),
                }
                res << context.script(properties)
        }
        res
end
version(model) click to toggle source
# File lib/ydim/html/view/template.rb, line 53
def version(model)
        span = HtmlGrid::Span.new(model, @session, self)
        span.css_id = 'version'
        span.value = [ 
                lgpl_license(model), @lookandfeel.lookup('comma'), Time.now.year.to_s,
                cpr_link(model), @lookandfeel.lookup('comma'), ydim_version(model),
        ]
        span
end
ydim_version(model) click to toggle source
# File lib/ydim/html/view/template.rb, line 62
def ydim_version(model)
        link = standard_link(:ydim_version, model)
        link.href = 'https://github.com/zdavatz/ydim-html'
        link.set_attribute('title', YDIM_VERSION)
        link
end