diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-04 09:14:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-04 09:14:17 +0000 |
commit | 2e9b28906db62f5ef5b2663f68d395a8e261959c (patch) | |
tree | 056539161b4f990d59dcb3482ae7c8b172b4417d /app/views/timelog/report.html.erb | |
parent | efdf2584b68bfde062507965811f0f416f42dcbc (diff) | |
download | redmine-2e9b28906db62f5ef5b2663f68d395a8e261959c.tar.gz redmine-2e9b28906db62f5ef5b2663f68d395a8e261959c.zip |
Removes routes for time entries nested under project/issues.
git-svn-id: http://svn.redmine.org/redmine/trunk@13424 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog/report.html.erb')
-rw-r--r-- | app/views/timelog/report.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/timelog/report.html.erb b/app/views/timelog/report.html.erb index ac2637ef1..cb556a656 100644 --- a/app/views/timelog/report.html.erb +++ b/app/views/timelog/report.html.erb @@ -1,14 +1,14 @@ <div class="contextual"> -<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %> +<%= link_to l(:button_log_time), + _new_time_entry_path(@project, @issue), + :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project, :global => true) %> </div> <%= render_timelog_breadcrumb %> <h2><%= l(:label_spent_time) %></h2> -<%= form_tag({:controller => 'timelog', :action => 'report', - :project_id => @project, :issue_id => @issue}, - :method => :get, :id => 'query_form') do %> +<%= form_tag(params.slice(:project_id, :issue_id), :method => :get, :id => 'query_form') do %> <% @report.criteria.each do |criterion| %> <%= hidden_field_tag 'criteria[]', criterion, :id => nil %> <% end %> |