##// END OF EJS Templates
Add RTL support to the context menu. #6012...
Eric Davis -
r3900:05527be943a5
parent child
Show More
@@ -0,0 +1,9
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; }
4
5 #context-menu a {
6 background-position: 100% 40%;
7 padding-right: 20px;
8 padding-left: 0px;
9 }
@@ -737,6 +737,11 module ApplicationHelper
737 737 javascript_include_tag('context_menu') +
738 738 stylesheet_link_tag('context_menu')
739 739 end
740 if l(:direction) == 'rtl'
741 content_for :header_tags do
742 stylesheet_link_tag('context_menu_rtl')
743 end
744 end
740 745 @context_menu_included = true
741 746 end
742 747 javascript_tag "new ContextMenu('#{ url_for(url) }')"
@@ -128,6 +128,7
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('#{issues_context_menu_path}')" %>
@@ -60,7 +60,3 div#issue-changesets { float: left; margin-right: 1em; margin-left: 0 }
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; }
General Comments 0
You need to be logged in to leave comments. Login now