diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 6bc9b1d4..b03552b8 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -43,6 +43,7 @@ module SearchHelper options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty? options << [l(:label_and_its_subprojects, @project.name), 'subprojects'] unless @project.nil? || @project.descendants.active.empty? options << [@project.name, ''] unless @project.nil? + label_tag("scope", l(:description_project_scope), :class => "hidden-for-sighted") + select_tag('scope', options_for_select(options, params[:scope].to_s)) if options.size > 1 end diff --git a/config/locales/de.yml b/config/locales/de.yml index 128750da..a14b61c8 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -982,3 +982,4 @@ de: label_path_encoding: Path encoding text_mercurial_repo_example: local repository (e.g. /hgrepo, c:\hgrepo) label_diff: diff + description_project_scope: Suchbereich diff --git a/config/locales/en.yml b/config/locales/en.yml index e0614bac..1512156b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -964,3 +964,4 @@ en: enumeration_doc_categories: Document categories enumeration_activities: Activities (time tracking) enumeration_system_activity: System Activity + description_project_scope: Search scope