diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-18 20:44:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-18 20:44:33 +0000 |
commit | 8bb60b64747647fd17073ed11b60cfd1d7624919 (patch) | |
tree | 87bcec1518f3bafc7100e935a5a3217a74b996f9 /app/helpers/users_helper.rb | |
parent | 143be7ee029273ca882d3cfb807a9952eaab6539 (diff) | |
download | redmine-8bb60b64747647fd17073ed11b60cfd1d7624919.tar.gz redmine-8bb60b64747647fd17073ed11b60cfd1d7624919.zip |
added a status filter on users/list
git-svn-id: http://redmine.rubyforge.org/svn/trunk@347 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r-- | app/helpers/users_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index adc62fb77..9dc87c5cc 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -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 |