Commit fc60c391 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve search page UX

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b49ebf57
%ul.nav.nav-pills.append-bottom-20 %ul.nav.nav-tabs.append-bottom-10
%li{class: ("active" if params[:search_code].present?)} %li{class: ("active" if params[:search_code].present?)}
= link_to search_path(params.merge(search_code: true)) do = link_to search_path(params.merge(search_code: true)) do
Repository Code Repository Code
%li{class: ("active" if params[:search_code].blank?)} %li{class: ("active" if params[:search_code].blank?)}
= link_to search_path(params.merge(search_code: nil)) do = link_to search_path(params.merge(search_code: nil)) do
Everything else Issues and Merge requests
.search_results .search_results
- if params[:search_code].present? - if params[:search_code].present?
......
%fieldset %h4
%legend #{@search_results[:total_results]} results found
Search results - if @project
%span.cgray (#{@search_results[:total_results]}) for #{link_to @project.name_with_namespace, @project}
- elsif @group
for #{link_to @group.name, @group}
%hr
- if @project - if @project
= render "project_results" = render "project_results"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment