%ul.nav.nav-pills %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 .search_results - if params[:search_code].present? .blob-results = render partial: "search/results/blob", collection: @blobs = paginate @blobs, theme: 'gitlab' - else %ul.bordered-list = render partial: "search/results/merge_request", collection: @merge_requests = render partial: "search/results/issue", collection: @issues