Mercurial > hg > soundsoftware-site
comparison app/helpers/projects_helper.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children | a1bdbf8a87d5 |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
49 options << "<option value=''> </option>" if project.allowed_parents.include?(nil) | 49 options << "<option value=''> </option>" if project.allowed_parents.include?(nil) |
50 options << project_tree_options_for_select(project.allowed_parents.compact, :selected => selected) | 50 options << project_tree_options_for_select(project.allowed_parents.compact, :selected => selected) |
51 content_tag('select', options.html_safe, :name => 'project[parent_id]', :id => 'project_parent_id') | 51 content_tag('select', options.html_safe, :name => 'project[parent_id]', :id => 'project_parent_id') |
52 end | 52 end |
53 | 53 |
54 def render_project_action_links | |
55 links = [] | |
56 links << link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) | |
57 links << link_to(l(:label_issue_view_all), issues_path) if User.current.allowed_to?(:view_issues, nil, :global => true) | |
58 links << link_to(l(:label_overall_spent_time), time_entries_path) if User.current.allowed_to?(:view_time_entries, nil, :global => true) | |
59 links << link_to(l(:label_overall_activity), { :controller => 'activities', :action => 'index', :id => nil }) | |
60 links.join(" | ").html_safe | |
61 end | |
62 | |
54 # Renders the projects index | 63 # Renders the projects index |
55 def render_project_hierarchy(projects) | 64 def render_project_hierarchy(projects) |
56 render_project_nested_lists(projects) do |project| | 65 render_project_nested_lists(projects) do |project| |
57 s = link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}") | 66 s = link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}") |
58 if project.description.present? | 67 if project.description.present? |