From 18073c971e69fcfbfcafc8f2ec81768ea18220f8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 29 Oct 2016 14:06:15 +0000 Subject: 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 --- app/views/versions/index.html.erb | 4 ++-- app/views/versions/show.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views/versions') 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 -%> <% 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 @@ <% if @issues.present? %> -<%= form_tag({}) do -%> +<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> <%- @issues.each do |issue| -%> @@ -47,7 +47,7 @@ <% end %> <% end %> -<%= context_menu issues_context_menu_path %> +<%= context_menu %> <% end %> -- cgit v1.2.3