Skip to content
Snippets Groups Projects
Verified Commit fc60c391 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve search page UX

parent b49ebf57
No related branches found
No related tags found
No related merge requests found
%ul.nav.nav-pills.append-bottom-20
%ul.nav.nav-tabs.append-bottom-10
%li{class: ("active" if params[:search_code].present?)}
= link_to search_path(params.merge(search_code: true)) do
Repository Code
%li{class: ("active" if params[:search_code].blank?)}
= link_to search_path(params.merge(search_code: nil)) do
Everything else
Issues and Merge requests
 
.search_results
- if params[:search_code].present?
Loading
Loading
%fieldset
%legend
Search results
%span.cgray (#{@search_results[:total_results]})
%h4
#{@search_results[:total_results]} results found
- if @project
for #{link_to @project.name_with_namespace, @project}
- elsif @group
for #{link_to @group.name, @group}
%hr
 
- if @project
= render "project_results"
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