Commit 1c8d01b0 authored by Phil Hughes's avatar Phil Hughes

Removed category icons

parent be521d7d
...@@ -2,97 +2,70 @@ ...@@ -2,97 +2,70 @@
- if @project - if @project
%li{class: ("active" if @scope == 'blobs')} %li{class: ("active" if @scope == 'blobs')}
= link_to search_filter_path(scope: 'blobs') do = link_to search_filter_path(scope: 'blobs') do
= icon('code fw') Code
%span %span.badge
Code = @search_results.blobs_count
%span.badge
= @search_results.blobs_count
%li{class: ("active" if @scope == 'issues')} %li{class: ("active" if @scope == 'issues')}
= link_to search_filter_path(scope: 'issues') do = link_to search_filter_path(scope: 'issues') do
= icon('exclamation-circle fw') Issues
%span %span.badge
Issues = @search_results.issues_count
%span.badge
= @search_results.issues_count
%li{class: ("active" if @scope == 'merge_requests')} %li{class: ("active" if @scope == 'merge_requests')}
= link_to search_filter_path(scope: 'merge_requests') do = link_to search_filter_path(scope: 'merge_requests') do
= icon('tasks fw') Merge requests
%span %span.badge
Merge requests = @search_results.merge_requests_count
%span.badge
= @search_results.merge_requests_count
%li{class: ("active" if @scope == 'milestones')} %li{class: ("active" if @scope == 'milestones')}
= link_to search_filter_path(scope: 'milestones') do = link_to search_filter_path(scope: 'milestones') do
= icon('clock-o fw') Milestones
%span %span.badge
Milestones = @search_results.milestones_count
%span.badge
= @search_results.milestones_count
%li{class: ("active" if @scope == 'notes')} %li{class: ("active" if @scope == 'notes')}
= link_to search_filter_path(scope: 'notes') do = link_to search_filter_path(scope: 'notes') do
= icon('comments fw') Comments
%span %span.badge
Comments = @search_results.notes_count
%span.badge
= @search_results.notes_count
%li{class: ("active" if @scope == 'wiki_blobs')} %li{class: ("active" if @scope == 'wiki_blobs')}
= link_to search_filter_path(scope: 'wiki_blobs') do = link_to search_filter_path(scope: 'wiki_blobs') do
= icon('book fw') Wiki
%span %span.badge
Wiki = @search_results.wiki_blobs_count
%span.badge
= @search_results.wiki_blobs_count
%li{class: ("active" if @scope == 'commits')} %li{class: ("active" if @scope == 'commits')}
= link_to search_filter_path(scope: 'commits') do = link_to search_filter_path(scope: 'commits') do
= icon('history fw') Commits
%span %span.badge
Commits = @search_results.commits_count
%span.badge
= @search_results.commits_count
- elsif @show_snippets - elsif @show_snippets
%li{class: ("active" if @scope == 'snippet_blobs')} %li{class: ("active" if @scope == 'snippet_blobs')}
= link_to search_filter_path(scope: 'snippet_blobs', snippets: true, group_id: nil, project_id: nil) do = link_to search_filter_path(scope: 'snippet_blobs', snippets: true, group_id: nil, project_id: nil) do
= icon('code fw') Snippet Contents
%span %span.badge
Snippet Contents = @search_results.snippet_blobs_count
%span.badge
= @search_results.snippet_blobs_count
%li{class: ("active" if @scope == 'snippet_titles')} %li{class: ("active" if @scope == 'snippet_titles')}
= link_to search_filter_path(scope: 'snippet_titles', snippets: true, group_id: nil, project_id: nil) do = link_to search_filter_path(scope: 'snippet_titles', snippets: true, group_id: nil, project_id: nil) do
= icon('book fw') Titles and Filenames
%span %span.badge
Titles and Filenames = @search_results.snippet_titles_count
%span.badge
= @search_results.snippet_titles_count
- else - else
%li{class: ("active" if @scope == 'projects')} %li{class: ("active" if @scope == 'projects')}
= link_to search_filter_path(scope: 'projects') do = link_to search_filter_path(scope: 'projects') do
= icon('bookmark fw') Projects
%span %span.badge
Projects = @search_results.projects_count
%span.badge
= @search_results.projects_count
%li{class: ("active" if @scope == 'issues')} %li{class: ("active" if @scope == 'issues')}
= link_to search_filter_path(scope: 'issues') do = link_to search_filter_path(scope: 'issues') do
= icon('exclamation-circle fw') Issues
%span %span.badge
Issues = @search_results.issues_count
%span.badge
= @search_results.issues_count
%li{class: ("active" if @scope == 'merge_requests')} %li{class: ("active" if @scope == 'merge_requests')}
= link_to search_filter_path(scope: 'merge_requests') do = link_to search_filter_path(scope: 'merge_requests') do
= icon('tasks fw') Merge requests
%span %span.badge
Merge requests = @search_results.merge_requests_count
%span.badge
= @search_results.merge_requests_count
%li{class: ("active" if @scope == 'milestones')} %li{class: ("active" if @scope == 'milestones')}
= link_to search_filter_path(scope: 'milestones') do = link_to search_filter_path(scope: 'milestones') do
= icon('clock-o fw') Milestones
%span %span.badge
Milestones = @search_results.milestones_count
%span.badge
= @search_results.milestones_count
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