From c28e1847bb55755da6f9d8308183e672a02a3f64 Mon Sep 17 00:00:00 2001 From: Akiko Takano Date: Thu, 8 Dec 2011 15:56:48 +0900 Subject: [PATCH] Add tag for IE. This is because now IE9 can display SVG images but IE can't handle them via embed tag. --- lib/target_version_graph_hook.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/target_version_graph_hook.rb b/lib/target_version_graph_hook.rb index 74130be..21a2b27 100644 --- a/lib/target_version_graph_hook.rb +++ b/lib/target_version_graph_hook.rb @@ -3,9 +3,12 @@ class TargetVersionGraphHook < Redmine::Hook::ViewListener def view_versions_show_bottom(context = { }) if !context[:version].fixed_issues.empty? output = "
#{ l(:label_graphs_total_vs_closed_issues) }" + output << "" + output << "\"#{" output << tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'target_version_graph', :id => context[:version])) + output << "" output << "
" return output end end -end \ No newline at end of file +end