app/helpers/application_helper.rb
# Link to a single stylesheet asset (which may be comprised of several individual files).
# NOTE - Styles will only be cached for English. Sorry; impractical to maintain copies of all cached files for
# every language.
Link to a single stylesheet asset (which may be comprised of several individual files).
NOTE - Styles will only be cached for English. Sorry; impractical to maintain copies of all cached files for
every language.
Link to a single stylesheet asset ( which may be comprised of several individual files ) . NOTE - Styles will only be cached for English . Sorry ; impractical to maintain copies of all cached files for every language .
def stylesheet_include_i18n_merged(stylesheet, options = {})
    code = ''
    language_css_path = Rails.root.join("app", "assets", "stylesheets", "languages", I18n.locale.to_s, "#{stylesheet}.css")
    language_sass_path = Rails.root.join("app", "assets", "stylesheets", "languages", I18n.locale.to_s, "#{stylesheet}.sass")
    if File.exists?(language_css_path) || File.exists?(language_sass_path)
      code += stylesheet_link_tag("languages/#{I18n.locale}/#{stylesheet}", options)
    else
      code += stylesheet_link_tag(stylesheet, options)
    end
    language_css_path = Rails.root.join("app", "assets", "stylesheets", "languages", I18n.locale.to_s, "#{stylesheet}_include.css")
    language_sass_path = Rails.root.join("app", "assets", "stylesheets", "languages", I18n.locale.to_s, "#{stylesheet}_include.sass")
    if File.exists?(language_css_path) || File.exists?(language_sass_path)
      code += stylesheet_link_tag("languages/#{I18n.locale}/#{stylesheet}_include", options)
    end
    return raw(code)
  end
def stylesheet_include_i18n_merged ( stylesheet , options = { } ) code = '' language_css_path = Rails . root . join ( "app" , "assets" , "stylesheets" , "languages" , I18n . locale . to_s , "#{stylesheet}.css" ) language_sass_path = Rails . root . join ( "app" , "assets" , "stylesheets" , "languages" , I18n . locale . to_s , "#{stylesheet}.sass" ) if File . exists? ( language_css_path ) || File . exists? ( language_sass_path ) code += stylesheet_link_tag ( "languages/#{I18n.locale}/#{stylesheet}" , options ) else code += stylesheet_link_tag ( stylesheet , options ) end language_css_path = Rails . root . join ( "app" , "assets" , "stylesheets" , "languages" , I18n . locale . to_s , "#{stylesheet}_include.css" ) language_sass_path = Rails . root . join ( "app" , "assets" , "stylesheets" , "languages" , I18n . locale . to_s , "#{stylesheet}_include.sass" ) if File . exists? ( language_css_path ) || File . exists? ( language_sass_path ) code += stylesheet_link_tag ( "languages/#{I18n.locale}/#{stylesheet}_include" , options ) end return raw ( code ) end
Link to a single stylesheet asset (which may be comprised of several individual files).
Link to a single stylesheet asset ( which may be comprised of several individual files ) .
# get the replacements # get the additions
stylesheet
<not_specific>
options
<not_specific>