@@ -1,7 +1,7 | |||||
1 | <% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %> |
|
1 | <% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %> | |
2 | <select onchange="if (this.value != '') { window.location = this.value; }"> |
|
2 | <select onchange="if (this.value != '') { window.location = this.value; }"> | |
3 | <option selected="selected"><%= l(:label_jump_to_a_project) %></option> |
|
3 | <option selected="selected" value=""><%= l(:label_jump_to_a_project) %></option> | |
4 | <option disabled="disabled">---</option> |
|
4 | <option disabled="disabled" value="">---</option> | |
5 | <% user_projects_by_root.keys.sort.each do |root| %> |
|
5 | <% user_projects_by_root.keys.sort.each do |root| %> | |
6 | <%= content_tag('option', h(root.name), :value => url_for(:controller => 'projects', :action => 'show', :id => root, :jump => current_menu_item)) %> |
|
6 | <%= content_tag('option', h(root.name), :value => url_for(:controller => 'projects', :action => 'show', :id => root, :jump => current_menu_item)) %> | |
7 | <% user_projects_by_root[root].sort.each do |project| %> |
|
7 | <% user_projects_by_root[root].sort.each do |project| %> |
General Comments 0
You need to be logged in to leave comments.
Login now