Commit e4db8c7a authored by MrZYX's avatar MrZYX
Browse files

fixed #589, no CSS!

parent f3a62bf7
......@@ -22,6 +22,8 @@
= stylesheet_link_tag "blueprint/screen", :media => 'screen'
= stylesheet_link_tag "blueprint/print", :media => 'print'
= include_stylesheets :default, :media => 'all'
- if RTL_LANGUAGES.include? I18n.locale
= include_stylesheets :rtl, :media => 'all'
<!--[if IE]>
= javascript_include_tag "/javascripts/ie.js"
......
......@@ -17,6 +17,9 @@
= stylesheet_link_tag 'vendor/jquery.mobile-1.0a4.min', 'mobile'
= csrf_meta_tag
- if RTL_LANGUAGES.include? I18n.locale
= include_stylesheets :rtl, :media => 'all'
= yield(:head)
......
......@@ -77,4 +77,6 @@ stylesheets:
- public/stylesheets/vendor/fileuploader.css
- public/stylesheets/vendor/tipsy.css
- public/stylesheets/vendor/autoSuggest.css
rtl:
- public/stylesheets/rtl.css
......@@ -13,11 +13,13 @@ if File.exists?(File.expand_path("./config/locale_settings.yml"))
DEFAULT_LANGUAGE = (AVAILABLE_LANGUAGES.include?(locale_settings['default'])) ? locale_settings['default'] : AVAILABLE_LANGUAGES.keys[0].to_s
AVAILABLE_LANGUAGE_CODES = locale_settings['available'].keys.map { |v| v.to_s }
LANGUAGE_CODES_MAP = locale_settings['fallbacks']
RTL_LANGUAGES = locale_settings['rtl']
else
AVAILABLE_LANGUAGES = { :en => 'English' }
DEFAULT_LANGUAGE = 'en'
AVAILABLE_LANGUAGE_CODES = ['en']
LANGUAGE_CODES_MAP = {}
RTL_LANGUAGES = []
end
# Initialize the rails application
......
......@@ -56,3 +56,6 @@ fallbacks:
zh:
- :zh-CN
- :zh-TW
rtl:
- :ar
- :he
body
:direction rtl
:text-align right
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment