Revision 1315:12556ba57d17

View differences:

plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.html.erb
1

  
2
<% content_for :header_tags do %>
3
  <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %>
4
<% end %>
5

  
1 6
<div class="repository-info">
2 7
  <% if repository.checkout_description.present? %>
3 8
  <div class="wiki<%= ' bottomline' if protocols.present? %>"><%= textilizable repository.checkout_description %></div>
......
39 44
  <% end %>
40 45
</div>
41 46
<div style="clear: left"></div>
42

  
43
<% content_for :header_tags do %>
44
  <%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %>
45
  <%= javascript_include_tag 'checkout', :plugin => 'redmine_checkout' %>
46
<% end %>
plugins/redmine_checkout/lib/checkout/repository_hooks.rb
27 27
        })
28 28
      
29 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 37
      end
32 38
    end
33 39
  end
34
end
40
end

Also available in: Unified diff