diff options
Diffstat (limited to 'app/views/layouts/_search.html.haml')
-rw-r--r-- | app/views/layouts/_search.html.haml | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml index 2470314f6fc..b7f89e3fe3a 100644 --- a/app/views/layouts/_search.html.haml +++ b/app/views/layouts/_search.html.haml @@ -3,13 +3,6 @@ = text_field_tag "search", nil, placeholder: "Search", class: "search-input" = hidden_field_tag :group_id, @group.try(:id) = hidden_field_tag :project_id, @project.try(:id) - - if @ref - - @branch_ref = @ref - - else - - @branch_ref = @project.try(:default_branch) - - if @branch_ref.blank? - - @branch_ref = 'master' - = hidden_field_tag :branch_ref, @branch_ref - - if ENV['RAILS_ENV'] == 'test' - = submit_tag 'Go' - .search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source }
\ No newline at end of file + = hidden_field_tag :repository_ref, @ref + = submit_tag 'Go' if ENV['RAILS_ENV'] == 'test' + .search-autocomplete-json.hide{:'data-autocomplete-opts' => search_autocomplete_source } |