Ability to search all projects or the projects the user belongs to (#791).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1435 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
1907c31138
commit
073818f8bc
14 files changed
+96
-59
No files matched your search
@@ -35,4 +35,11 @@ module SearchHelper
|
||||
end
|
||||
result
|
||||
end
|
||||
|
||||
def project_select_tag
|
||||
options = [[l(:label_project_all), 'all']]
|
||||
options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty?
|
||||
options << [@project.name, ''] unless @project.nil?
|
||||
select_tag('projects', options_for_select(options, params[:projects].to_s)) if options.size > 1
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user