Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/target_version_graph_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ class TargetVersionGraphHook < Redmine::Hook::ViewListener
def view_versions_show_bottom(context = { })
if !context[:version].fixed_issues.empty?
output = "<fieldset id='target_version_graph'><legend>#{ l(:label_graphs_total_vs_closed_issues) }</legend>"
output << "<object width=\"100%\" height=\"300\" type=\"image/svg+xml\" data=\"#{src}\">"
output << "<img src=\"#{src}\" alt=\"#{ l(:label_graphs_total_vs_closed_issues) }\"/>"
output << tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'target_version_graph', :id => context[:version]))
output << "</object>"
output << "</fieldset>"
return output
end
end
end
end