Adds date range filter and pagination on time entries detail view (closes #434).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1173 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-02-26 18:15:58 +00:00
parent 792b7f30e3
commit 328df74dd1
34 changed files with 453 additions and 88 deletions
+5 -5
View File
@@ -108,13 +108,13 @@ module SortHelper
end
caption = titleize(Inflector::humanize(column)) unless caption
url = {:sort_key => column, :sort_order => order, :status => params[:status],
:issue_id => params[:issue_id],
:project_id => params[:project_id]}
sort_options = { :sort_key => column, :sort_order => order }
# don't reuse params if filters are present
url_options = params.has_key?(:set_filter) ? sort_options : params.merge(sort_options)
link_to_remote(caption,
{:update => "content", :url => url},
{:href => url_for(url)}) +
{:update => "content", :url => url_options},
{:href => url_for(url_options)}) +
(icon ? nbsp(2) + image_tag(icon) : '')
end