@@ -20,7 +20,7 | |||||
20 | module ProjectsHelper |
|
20 | module ProjectsHelper | |
21 | def link_to_version(version, options = {}) |
|
21 | def link_to_version(version, options = {}) | |
22 | return '' unless version && version.is_a?(Version) |
|
22 | return '' unless version && version.is_a?(Version) | |
23 |
link_to_if version.visible?, format_version_name(version), |
|
23 | link_to_if version.visible?, format_version_name(version), version_path(version), options | |
24 | end |
|
24 | end | |
25 |
|
25 | |||
26 | def project_settings_tabs |
|
26 | def project_settings_tabs | |
@@ -53,10 +53,16 module ProjectsHelper | |||||
53 |
|
53 | |||
54 | def render_project_action_links |
|
54 | def render_project_action_links | |
55 | 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) |
|
56 | 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) |
|
57 | links << link_to(l(:label_project_new), new_project_path, :class => 'icon icon-add') | |
58 | links << link_to(l(:label_overall_spent_time), time_entries_path) if User.current.allowed_to?(:view_time_entries, nil, :global => true) |
|
58 | end | |
59 | links << link_to(l(:label_overall_activity), { :controller => 'activities', :action => 'index', :id => nil }) |
|
59 | if User.current.allowed_to?(:view_issues, nil, :global => true) | |
|
60 | links << link_to(l(:label_issue_view_all), issues_path) | |||
|
61 | end | |||
|
62 | if User.current.allowed_to?(:view_time_entries, nil, :global => true) | |||
|
63 | links << link_to(l(:label_overall_spent_time), time_entries_path) | |||
|
64 | end | |||
|
65 | links << link_to(l(:label_overall_activity), activity_path) | |||
60 | links.join(" | ").html_safe |
|
66 | links.join(" | ").html_safe | |
61 | end |
|
67 | end | |
62 |
|
68 |
General Comments 0
You need to be logged in to leave comments.
Login now