diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 00:27:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 00:27:42 +0000 |
commit | f4e5025aed8028f8604629ede459a2a317dee676 (patch) | |
tree | f5f876577ffef831b8f5cfc99c9bade5d21e2d1b /app/views/projects | |
parent | b29c48717d8da9a8f72b92e7c7c0eef9d00951d9 (diff) | |
download | redmine-f4e5025aed8028f8604629ede459a2a317dee676.tar.gz redmine-f4e5025aed8028f8604629ede459a2a317dee676.zip |
Extract code to render project context links to helper (#16381).
Patch by Michael Esemplare.
git-svn-id: http://svn.redmine.org/redmine/trunk@12986 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/index.html.erb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index 504ac0266..a223bde74 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -3,12 +3,7 @@ <% end %> <div class="contextual"> - <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %> - <%= link_to(l(:label_issue_view_all), issues_path) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %> - <%= link_to(l(:label_overall_spent_time), time_entries_path) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %> - <%= link_to l(:label_overall_activity), - { :controller => 'activities', :action => 'index', - :id => nil } %> + <%= render_project_action_links %> </div> <h2><%= l(:label_project_plural) %></h2> |