added a status filter on users/list
git-svn-id: http://redmine.rubyforge.org/svn/trunk@347 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -77,7 +77,7 @@ module ApplicationHelper
|
||||
def pagination_links_full(paginator, options={}, html_options={})
|
||||
html = ''
|
||||
html << link_to_remote(('« ' + l(:label_previous)),
|
||||
{:update => "content", :url => { :page => paginator.current.previous }},
|
||||
{:update => "content", :url => params.merge({ :page => paginator.current.previous })},
|
||||
{:href => url_for(:action => 'list', :params => params.merge({:page => paginator.current.previous}))}) + ' ' if paginator.current.previous
|
||||
|
||||
html << (pagination_links_each(paginator, options) do |n|
|
||||
@@ -87,7 +87,7 @@ module ApplicationHelper
|
||||
end || '')
|
||||
|
||||
html << ' ' + link_to_remote((l(:label_next) + ' »'),
|
||||
{:update => "content", :url => { :page => paginator.current.next }},
|
||||
{:update => "content", :url => params.merge({ :page => paginator.current.next })},
|
||||
{:href => url_for(:action => 'list', :params => params.merge({:page => paginator.current.next}))}) if paginator.current.next
|
||||
html
|
||||
end
|
||||
|
||||
@@ -16,4 +16,10 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
module UsersHelper
|
||||
def status_options_for_select(selected)
|
||||
options_for_select([[l(:label_all), "*"],
|
||||
[l(:status_active), 1],
|
||||
[l(:status_registered), 2],
|
||||
[l(:status_locked), 3]], selected)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user