Sha256: 96c97e2754d8d18586e022407152a006002b8f57fc206e6a591c2d63af971598
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
module Netzke module Railz module ActionViewExt # Implementation of Ext-specific Netzke helpers module Ext private def netzke_ext_css_include(params) # ExtJS base res = ["#{Netzke::Core.ext_uri}/resources/css/ext-#{params[:theme]}.css"] # Netzke-related dynamic css res << netzke_path(:ext) res += Netzke::Core.external_ext_css stylesheet_link_tag(*res) end def netzke_ext_js_include(params) res = [] # ExtJS res << (params[:minified] ? "#{Netzke::Core.ext_uri}/ext-all.js" : "#{Netzke::Core.ext_uri}/ext-all-debug.js") # Ext I18n res << "#{Netzke::Core.ext_uri}/locale/ext-lang-#{I18n.locale}" if I18n.locale != :en # Netzke-related dynamic JavaScript res << netzke_path(:ext) javascript_include_tag(*res) end def netzke_ext_js(params) res = [] res << content_for(:netzke_js_classes) res << "Ext.onReady(function(){" res << content_for(:netzke_on_ready) res << "});" javascript_tag(res.join("\n")) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems