Project

General

Profile

Patch #6012 » context_menu_rtl.patch

Azamat Hackimov, 2010-08-19 20:27

View differences:

app/helpers/application_helper.rb (working copy)
734 734
  def context_menu(url)
735 735
    unless @context_menu_included
736 736
      content_for :header_tags do
737
        javascript_include_tag('context_menu') +
738
          stylesheet_link_tag('context_menu')
737
        if l(:direction) != 'rtl'
738
	  javascript_include_tag('context_menu') +
739
            stylesheet_link_tag('context_menu')
740
	else
741
          javascript_include_tag('context_menu') +
742
            stylesheet_link_tag('context_menu') +
743
	    stylesheet_link_tag('context_menu_rtl')
744
	end
739 745
      end
740 746
      @context_menu_included = true
741 747
    end
app/views/issues/show.rhtml (working copy)
128 128
    <%= stylesheet_link_tag 'scm' %>
129 129
    <%= javascript_include_tag 'context_menu' %>
130 130
    <%= stylesheet_link_tag 'context_menu' %>
131
    <%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %>
131 132
<% end %>
132 133
<div id="context-menu" style="display: none;"></div>
133 134
<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %>
public/stylesheets/context_menu_rtl.css (revision 0)
1
#context-menu li.folder ul { left:auto; right:168px; }
2
#context-menu li.folder>ul { left:auto; right:148px; }
3
#context-menu li a.submenu { background:url("../images/bullet_arrow_left.png") left no-repeat; }
public/stylesheets/rtl.css (working copy)
60 60
.journal-link { float: left; }
61 61
div.wiki pre { direction: ltr; }
62 62

  
63
#context-menu li.folder ul { left:auto; right:168px; }
64
#context-menu li.folder>ul { left:auto; right:148px; }
65

  
66
#context-menu li a.submenu { background:url("../images/bullet_arrow_left.png") left no-repeat; }
(8-8/9)