moved + to the left for rtl languages
This commit is contained in:
parent
42523139c7
commit
e7d48a16ee
4 changed files with 13 additions and 4 deletions
|
|
@ -284,4 +284,8 @@ module ApplicationHelper
|
|||
def direction_for(string)
|
||||
return (string.cleaned_is_rtl?) ? 'rtl' : ''
|
||||
end
|
||||
|
||||
def rtl?
|
||||
@rtl ||= RTL_LANGUAGES.include? I18n.locale
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -45,6 +45,10 @@
|
|||
|
||||
-unless @landing_page
|
||||
%ul#aspect_nav
|
||||
- if rtl?
|
||||
%li
|
||||
= link_to '+', '#add_aspect_pane', :class => "add_aspect_button", :title => t('aspects.manage.add_a_new_aspect'), :rel => 'facebox'
|
||||
|
||||
%li{:class => ('selected' if @aspect == :all)}
|
||||
= link_to t('all_aspects'), aspects_path, :class => 'home_selector'
|
||||
|
||||
|
|
@ -52,8 +56,9 @@
|
|||
%li{:data=>{:guid=>aspect.id}, :class => ("selected" if @object_aspect_ids.include?(aspect.id))}
|
||||
= link_for_aspect(aspect, :class => 'aspect_selector name', :title => t('contacts', :count => aspect.contacts.size))
|
||||
|
||||
%li
|
||||
= link_to '+', '#add_aspect_pane', :class => "add_aspect_button", :title => t('aspects.manage.add_a_new_aspect'), :rel => 'facebox'
|
||||
- unless rtl?
|
||||
%li
|
||||
= link_to '+', '#add_aspect_pane', :class => "add_aspect_button", :title => t('aspects.manage.add_a_new_aspect'), :rel => 'facebox'
|
||||
|
||||
.facebox_content
|
||||
#add_aspect_pane
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
= 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
|
||||
- if rtl?
|
||||
= include_stylesheets :rtl, :media => 'all'
|
||||
|
||||
<!--[if IE]>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
= stylesheet_link_tag 'vendor/jquery.mobile-1.0a4.min', 'mobile'
|
||||
= csrf_meta_tag
|
||||
|
||||
- if RTL_LANGUAGES.include? I18n.locale
|
||||
- if rtl?
|
||||
= include_stylesheets :rtl, :media => 'all'
|
||||
|
||||
= yield(:head)
|
||||
|
|
|
|||
Loading…
Reference in a new issue