fixed #589, no CSS!
This commit is contained in:
parent
f3a62bf76b
commit
e4db8c7a36
6 changed files with 15 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,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)
|
||||
|
||||
-if AppConfig[:google_a_site]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
3
public/stylesheets/sass/rtl.sass
Normal file
3
public/stylesheets/sass/rtl.sass
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
body
|
||||
:direction rtl
|
||||
:text-align right
|
||||
Loading…
Reference in a new issue