summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-06 18:23:45 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-06 18:23:45 +0000
commit2ecca7e4df96cba3fe5ab75997ca179cd62968f8 (patch)
tree460a880a724dad450f262b175fb54fb89ff5e573 /app/views
parentc43ef6e7696e1f9684099a7a19d3b71b42ac5a06 (diff)
downloadredmine-2ecca7e4df96cba3fe5ab75997ca179cd62968f8.tar.gz
redmine-2ecca7e4df96cba3fe5ab75997ca179cd62968f8.zip
Refactor: rename TimelogController#details to #index
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4235 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/show.rhtml2
-rw-r--r--app/views/projects/show.rhtml2
-rw-r--r--app/views/timelog/_date_range.rhtml4
-rw-r--r--app/views/timelog/index.html.erb (renamed from app/views/timelog/details.rhtml)0
4 files changed, 4 insertions, 4 deletions
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index b3493cf7c..d1d93da9a 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -32,7 +32,7 @@
<th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h @issue.category ? @issue.category.name : "-" %></td>
<% if User.current.allowed_to?(:view_time_entries, @project) %>
<th class="spent-time"><%=l(:label_spent_time)%>:</th>
- <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %></td>
+ <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %></td>
<% end %>
</tr>
<tr>
diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml
index 80e45adf0..9651651ac 100644
--- a/app/views/projects/show.rhtml
+++ b/app/views/projects/show.rhtml
@@ -67,7 +67,7 @@
<% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
<h3><%= l(:label_spent_time) %></h3>
<p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
- <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> |
+ <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
<%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p>
<% end %>
<%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
diff --git a/app/views/timelog/_date_range.rhtml b/app/views/timelog/_date_range.rhtml
index 041e5587f..727de25ed 100644
--- a/app/views/timelog/_date_range.rhtml
+++ b/app/views/timelog/_date_range.rhtml
@@ -28,8 +28,8 @@
<div class="tabs">
<% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %>
<ul>
- <li><%= link_to(l(:label_details), url_params.merge({:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue }),
- :class => (@controller.action_name == 'details' ? 'selected' : nil)) %></li>
+ <li><%= link_to(l(:label_details), url_params.merge({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue }),
+ :class => (@controller.action_name == 'index' ? 'selected' : nil)) %></li>
<li><%= link_to(l(:label_report), url_params.merge({:controller => 'time_entry_reports', :action => 'report', :project_id => @project, :issue_id => @issue}),
:class => (@controller.action_name == 'report' ? 'selected' : nil)) %></li>
</ul>
diff --git a/app/views/timelog/details.rhtml b/app/views/timelog/index.html.erb
index a17c06e65..a17c06e65 100644
--- a/app/views/timelog/details.rhtml
+++ b/app/views/timelog/index.html.erb