diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-10 19:12:25 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-10 19:12:25 +0300 |
| commit | fb36355f2ff6d4c5465158608c60e0d33cb552ee (patch) | |
| tree | 4cedb90e48c18c0e49550ec13933c24e122717a3 /app/helpers | |
| parent | 01be32043af7ffb6981086f7fc05891bed578c15 (diff) | |
| download | gitlab-ce-fb36355f2ff6d4c5465158608c60e0d33cb552ee.tar.gz | |
Different search placeholder depdends on area
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/application_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e752e9fe65e..0a49892ca0a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -226,4 +226,13 @@ module ApplicationHelper content_tag :i, nil, class: 'icon-lock cgreen' end + def search_placeholder + if @project && @project.persisted? + "Search in this project" + elsif @group && @group.persisted? + "Search in this group" + else + "Search" + end + end end |
