Removed the Redmine core template and Redmine core hooks instead.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user