From ff93fc6df734a26a92b197389e43be54a7136f1b Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 19 Jan 2009 09:43:54 -0800 Subject: [PATCH] Removed custom project selector with one from the helpers. #1914 --- app/views/users/_rates.html.erb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/app/views/users/_rates.html.erb b/app/views/users/_rates.html.erb index 7e5494c..d221651 100644 --- a/app/views/users/_rates.html.erb +++ b/app/views/users/_rates.html.erb @@ -15,20 +15,9 @@ <%= - # TODO: Move to a partial, might have to send include in the Redmine helpers projects = Project.find(:all, :conditions => { :status => Project::STATUS_ACTIVE}, :include => :parent) - result = [] - user_projects_by_root = projects.group_by(&:root) - user_projects_by_root.keys.sort.each do |root| - result << [h(root.name), root.id] - user_projects_by_root[root].sort.each do |project| - next if project == root - result << ["ยป #{h(project.name)}", project.id] - end - end - - select_tag("project", options_for_select(result)) -%> + select_tag("project",projects_options_for_select(projects)) + %> <%= l(:rate_label_currency) %> <%= text_field_tag "rate", nil, :size => 10 %>