Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
1c8d01b0
Commit
1c8d01b0
authored
Apr 15, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed category icons
parent
be521d7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
66 deletions
+39
-66
app/views/search/_category.html.haml
app/views/search/_category.html.haml
+39
-66
No files found.
app/views/search/_category.html.haml
View file @
1c8d01b0
...
@@ -2,50 +2,36 @@
...
@@ -2,50 +2,36 @@
-
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'
)
%span
Code
Code
%span
.badge
%span
.badge
=
@search_results
.
blobs_count
=
@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'
)
%span
Issues
Issues
%span
.badge
%span
.badge
=
@search_results
.
issues_count
=
@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'
)
%span
Merge requests
Merge requests
%span
.badge
%span
.badge
=
@search_results
.
merge_requests_count
=
@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'
)
%span
Milestones
Milestones
%span
.badge
%span
.badge
=
@search_results
.
milestones_count
=
@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'
)
%span
Comments
Comments
%span
.badge
%span
.badge
=
@search_results
.
notes_count
=
@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'
)
%span
Wiki
Wiki
%span
.badge
%span
.badge
=
@search_results
.
wiki_blobs_count
=
@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'
)
%span
Commits
Commits
%span
.badge
%span
.badge
=
@search_results
.
commits_count
=
@search_results
.
commits_count
...
@@ -53,15 +39,11 @@
...
@@ -53,15 +39,11 @@
-
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'
)
%span
Snippet Contents
Snippet Contents
%span
.badge
%span
.badge
=
@search_results
.
snippet_blobs_count
=
@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'
)
%span
Titles and Filenames
Titles and Filenames
%span
.badge
%span
.badge
=
@search_results
.
snippet_titles_count
=
@search_results
.
snippet_titles_count
...
@@ -69,30 +51,21 @@
...
@@ -69,30 +51,21 @@
-
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'
)
%span
Projects
Projects
%span
.badge
%span
.badge
=
@search_results
.
projects_count
=
@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'
)
%span
Issues
Issues
%span
.badge
%span
.badge
=
@search_results
.
issues_count
=
@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'
)
%span
Merge requests
Merge requests
%span
.badge
%span
.badge
=
@search_results
.
merge_requests_count
=
@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'
)
%span
Milestones
Milestones
%span
.badge
%span
.badge
=
@search_results
.
milestones_count
=
@search_results
.
milestones_count
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment