Removed the Redmine core template and Redmine core hooks instead.

This commit is contained in:
Eric Davis
2009-08-01 11:05:55 -07:00
parent 43c20ae820
commit 724dd470ba
4 changed files with 39 additions and 72 deletions
+15
View File
@@ -0,0 +1,15 @@
class RateMembershipsHook < Redmine::Hook::ViewListener
def view_users_memberships_table_header(context={})
return content_tag(:th, l(:rate_label_rate) + ' ' + l(:rate_label_currency))
end
def view_users_memberships_table_row(context={})
return context[:controller].send(:render_to_string, {
:partial => 'users/membership_rate',
:locals => {
:membership => context[:membership],
:user => context[:user]
}})
end
end