comparison plugins/redmine_checkout/lib/checkout/repository_hooks.rb @ 1315:12556ba57d17 redmine-2.2-integration

Fix stylesheet inclusion in repo checkout partial
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 18 Jun 2013 15:33:36 +0100
parents b4b72f1eb644
children
comparison
equal deleted inserted replaced
1311:18052001fe11 1315:12556ba57d17
25 :default_protocol => default, 25 :default_protocol => default,
26 :checkout_path => path 26 :checkout_path => path
27 }) 27 })
28 28
29 options = {:partial => "redmine_checkout_hooks/view_repositories_show_contextual"} 29 options = {:partial => "redmine_checkout_hooks/view_repositories_show_contextual"}
30 context[:controller].send(:render_to_string, {:locals => context}.merge(options)) 30
31 # cc: cribbed from
32 # http://www.redmine.org/projects/redmine/repository/revisions/9785/diff/trunk/lib/redmine/hook.rb
33 # for http://www.redmine.org/issues/11105 (formerly used
34 # render_to_string on this controller, wasn't working for
35 # :header_tags)
36 context[:hook_caller].send(:render, {:locals => context}.merge(options))
31 end 37 end
32 end 38 end
33 end 39 end
34 end 40 end