Skip to content
Snippets Groups Projects
Commit b1757c20 authored by Jacob Schatz's avatar Jacob Schatz
Browse files

Change placeholder text to just 'search'

parent c5ed929d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -169,18 +169,6 @@ module ApplicationHelper
Gitlab.config.extra
end
 
def search_placeholder
if @project && @project.persisted?
'Search'
elsif @snippet || @snippets || @show_snippets
'Search snippets'
elsif @group && @group.persisted?
'Search in this group'
else
'Search'
end
end
# Render a `time` element with Javascript-based relative date and tooltip
#
# time - Time object
Loading
Loading
.search
= form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f|
= search_field_tag "search", nil, placeholder: search_placeholder, class: "search-input form-control", spellcheck: false
= search_field_tag "search", nil, placeholder: 'search', class: "search-input form-control", spellcheck: false
= hidden_field_tag :group_id, @group.try(:id)
- if @project && @project.persisted?
= hidden_field_tag :project_id, @project.id
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment