summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-07 15:51:09 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-07 15:51:09 +0000
commit068771ea0764e326d720455c87e6c8cbc0f825a3 (patch)
treea79f34bf8471a43b3d0829507bdfcd8b716eba63 /app/views
parente59156b446f1e402c95d04c39374630f2913b611 (diff)
downloadredmine-068771ea0764e326d720455c87e6c8cbc0f825a3.tar.gz
redmine-068771ea0764e326d720455c87e6c8cbc0f825a3.zip
Refactor: extract TimelogController#new from #edit
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4239 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/time_entry_reports/report.rhtml2
-rw-r--r--app/views/timelog/index.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/time_entry_reports/report.rhtml b/app/views/time_entry_reports/report.rhtml
index 0d28d5dc7..5ae9d6550 100644
--- a/app/views/time_entry_reports/report.rhtml
+++ b/app/views/time_entry_reports/report.rhtml
@@ -1,5 +1,5 @@
<div class="contextual">
-<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>
+<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>
</div>
<%= render_timelog_breadcrumb %>
diff --git a/app/views/timelog/index.html.erb b/app/views/timelog/index.html.erb
index a17c06e65..737476f35 100644
--- a/app/views/timelog/index.html.erb
+++ b/app/views/timelog/index.html.erb
@@ -1,5 +1,5 @@
<div class="contextual">
-<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>
+<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>
</div>
<%= render_timelog_breadcrumb %>