diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-22 14:36:31 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-22 14:36:31 +0000 |
commit | aa286a8e3f1fe7af099ee57a9f44b4641582e6b2 (patch) | |
tree | ec0213ba690147781c36abb6e1cf4ae6051c2b93 /app/views/projects | |
parent | d7692b25757500602d24f5694800f2afbde18791 (diff) | |
download | redmine-aa286a8e3f1fe7af099ee57a9f44b4641582e6b2.tar.gz redmine-aa286a8e3f1fe7af099ee57a9f44b4641582e6b2.zip |
add ":id => nil" to "Overall activity" link_to
On Rails 3.2.1, "Overall activity" link becomes "/assets?controller=activities".
Contributed by John Yani.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8922 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/index.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index 51679a0d7..b7cd8e6e8 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -6,7 +6,9 @@ <%= 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), { :controller => 'issues' }) + ' |' 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' }%> + <%= link_to l(:label_overall_activity), + { :controller => 'activities', :action => 'index', + :id => nil } %> </div> <h2><%=l(:label_project_plural)%></h2> |