Class: ODDB::Html::View::Template
- Inherits:
-
HtmlGrid::DivTemplate
- Object
- HtmlGrid::DivTemplate
- ODDB::Html::View::Template
show all
- Includes:
- HtmlGrid::DojoToolkit::DojoTemplate
- Defined in:
- lib/oddb/html/view/template.rb
Direct Known Subclasses
Drugs::Compare, Drugs::Fachinfo, Drugs::Feedback, Drugs::Init, Drugs::Package, Drugs::Patinfo, Drugs::Products, Drugs::Result, Drugs::Template, Limit, Login, PayPal::Collect, RegisterExport, RegisterPowerUser
Constant Summary
collapse
Foot
- HEAD =
Head
{
"Content-Type" => "text/html; charset=utf-8",
"Cache-Control" => "private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
"Pragma" => "no-cache",
"Expires" => Time.now.rfc1123,
"P3P" => "CP='OTI NID CUR OUR STP ONL UNI PRE'",
}
- COMPONENTS =
{
[0,0] => :head,
[0,1] => :content,
[0,2] => NavigationFoot,
[0,3] => :foot,
}
- CSS_ID_MAP =
['head', 'content', 'navigation', 'foot']
- DOJO_DEBUG =
ODDB.config.dojo_debug
- DOJO_REQUIRE =
[ 'dojo.widget.Tooltip' ]
- DOJO_PARSE_WIDGETS =
true
Instance Method Summary
collapse
Instance Method Details
#_title ⇒ Object
38
39
40
41
42
43
44
45
|
# File 'lib/oddb/html/view/template.rb', line 38
def _title
parts = [:html_title, @session.zone]
[@session.state.direct_event].flatten.each_with_index { |part, idx|
parts << part if((idx%2) == 0)
}
parts.collect { |key|
@lookandfeel.lookup(key) { key if(key.is_a?(String)) } }.compact
end
|
#css_links(context) ⇒ Object
46
47
48
49
50
51
52
|
# File 'lib/oddb/html/view/template.rb', line 46
def css_links(context)
if(@lookandfeel.enabled?(:external_css, false))
css_link(context, @lookandfeel.resource_external(:external_css))
else
super
end
end
|
#title(context) ⇒ Object
34
35
36
37
|
# File 'lib/oddb/html/view/template.rb', line 34
def title(context)
context.title {
_title.push(@lookandfeel.lookup(:html_owner)).join(' | ') }
end
|