summaryrefslogtreecommitdiffstats
path: root/app/views/my
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-04 19:02:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-04 19:02:57 +0000
commitbd5fe10c13b0fb15825f767f696e57bb709c1f68 (patch)
treea31767557f1516f72e849f357710f4fce83d0de4 /app/views/my
parent12759fd416995f51318c3cf3bfa42e5a1471ae3b (diff)
downloadredmine-bd5fe10c13b0fb15825f767f696e57bb709c1f68.tar.gz
redmine-bd5fe10c13b0fb15825f767f696e57bb709c1f68.zip
Adds an helper for creating the context menu.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3542 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my')
-rw-r--r--app/views/my/page.rhtml8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/my/page.rhtml b/app/views/my/page.rhtml
index 4d4c921b6..608e23326 100644
--- a/app/views/my/page.rhtml
+++ b/app/views/my/page.rhtml
@@ -31,12 +31,6 @@
<% end if @blocks['right'] %>
</div>
-<% content_for :header_tags do %>
- <%= javascript_include_tag 'context_menu' %>
- <%= stylesheet_link_tag 'context_menu' %>
-<% end %>
-
-<div id="context-menu" style="display: none;"></div>
-<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %>
+<%= context_menu :controller => 'issues', :action => 'context_menu' %>
<% html_title(l(:label_my_page)) -%>