diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-29 14:06:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-29 14:06:15 +0000 |
commit | 18073c971e69fcfbfcafc8f2ec81768ea18220f8 (patch) | |
tree | 84b3ae221e6cbaae1d3253d397490f41a8b1a840 /app/views/versions | |
parent | 7cce582c14a0022032cb33c60ad46715ec83af81 (diff) | |
download | redmine-18073c971e69fcfbfcafc8f2ec81768ea18220f8.tar.gz redmine-18073c971e69fcfbfcafc8f2ec81768ea18220f8.zip |
Don't use a global variable for storing context menu URL.
git-svn-id: http://svn.redmine.org/redmine/trunk@15936 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r-- | app/views/versions/index.html.erb | 4 | ||||
-rw-r--r-- | app/views/versions/show.html.erb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb index 0f1d0b842..ab6182033 100644 --- a/app/views/versions/index.html.erb +++ b/app/views/versions/index.html.erb @@ -23,7 +23,7 @@ <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %> <% if (issues = @issues_by_version[version]) && issues.size > 0 %> - <%= form_tag({}) do -%> + <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> <table class="list related-issues"> <caption><%= l(:label_related_issues) %></caption> <% issues.each do |issue| -%> @@ -99,4 +99,4 @@ <% html_title(l(:label_roadmap)) %> -<%= context_menu issues_context_menu_path %> +<%= context_menu %> diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb index f018c2d8e..638a17af7 100644 --- a/app/views/versions/show.html.erb +++ b/app/views/versions/show.html.erb @@ -36,7 +36,7 @@ </div> <% if @issues.present? %> -<%= form_tag({}) do -%> +<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> <table class="list related-issues"> <caption><%= l(:label_related_issues) %></caption> <%- @issues.each do |issue| -%> @@ -47,7 +47,7 @@ <% end %> </table> <% end %> -<%= context_menu issues_context_menu_path %> +<%= context_menu %> <% end %> </div> |