From 87a08dc94280023e2c8ee46c86d0c824e9fadccb Mon Sep 17 00:00:00 2001 From: Akira Saito Date: Sun, 18 Jan 2015 19:50:02 +0900 Subject: [PATCH] fix the collision of the template name. --- app/views/hooks/_context.erb | 231 ------------------------------------------- app/views/hooks/_head.erb | 1 - hooks.rb | 4 +- 3 files changed, 2 insertions(+), 234 deletions(-) delete mode 100644 app/views/hooks/_context.erb delete mode 100644 app/views/hooks/_head.erb diff --git a/app/views/hooks/_context.erb b/app/views/hooks/_context.erb deleted file mode 100644 index 9303be3..0000000 --- a/app/views/hooks/_context.erb +++ /dev/null @@ -1,231 +0,0 @@ -<% - extend ApplicationHelper - extend IssueRelationsHelper - custom_fields = @issues.map(&:available_custom_fields).reduce(:&).select do |f| - #concat f.field_format - %w(string date int).include?(f.field_format) - end - - first_issue = @issues.first - if @issues.size > 1 - second_issue = @issues[1] - end - - # 可能なら更新後に選択されたチケットに戻り先に設定 - if @back.match(/\/projects\/.*?\/issues/) - back_url = @back + '#issue-' + first_issue.id.to_s - else - back_url = @back - end -%> -
  • - <%= l(:button_quick_edit) %> - -
  • - - - <% if @issues.size <= 2 %> - - <% end %> - - - diff --git a/app/views/hooks/_head.erb b/app/views/hooks/_head.erb deleted file mode 100644 index b3f5e40..0000000 --- a/app/views/hooks/_head.erb +++ /dev/null @@ -1 +0,0 @@ -<% include_calendar_headers_tags %> diff --git a/hooks.rb b/hooks.rb index dff17ac..0a56cde 100644 --- a/hooks.rb +++ b/hooks.rb @@ -1,6 +1,6 @@ #coding: utf-8 class QuickEditHooks < Redmine::Hook::ViewListener - render_on :view_layouts_base_html_head, :partial=> 'hooks/head' - render_on :view_issues_context_menu_end, :partial=> 'hooks/context' + render_on :view_layouts_base_html_head, :partial=> 'hooks/quick_edit_base_head' + render_on :view_issues_context_menu_end, :partial=> 'hooks/quick_edit_context' end -- 2.11.0