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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
0ffacb8e
Commit
0ffacb8e
authored
Sep 05, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed commit search UI
Closes #21868
parent
fe3d94e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
app/views/search/_results.html.haml
app/views/search/_results.html.haml
+10
-6
app/views/search/results/_commit.html.haml
app/views/search/results/_commit.html.haml
+1
-2
No files found.
app/views/search/_results.html.haml
View file @
0ffacb8e
...
...
@@ -10,12 +10,16 @@
in group
#{
link_to
@group
.
name
,
@group
}
.results.prepend-top-10
.search-results
-
if
@scope
==
'projects'
.term
=
render
'shared/projects/list'
,
projects:
@search_objects
-
else
=
render
partial:
"search/results/
#{
@scope
.
singularize
}
"
,
collection:
@search_objects
-
if
@scope
==
'commits'
%ul
.list-unstyled
=
render
partial:
"search/results/commit"
,
collection:
@search_objects
-
else
.search-results
-
if
@scope
==
'projects'
.term
=
render
'shared/projects/list'
,
projects:
@search_objects
-
else
=
render
partial:
"search/results/
#{
@scope
.
singularize
}
"
,
collection:
@search_objects
-
if
@scope
!=
'projects'
=
paginate
(
@search_objects
,
theme:
'gitlab'
)
app/views/search/results/_commit.html.haml
View file @
0ffacb8e
.search-result-row
=
render
'projects/commits/commit'
,
project:
@project
,
commit:
commit
=
render
'projects/commits/commit'
,
project:
@project
,
commit:
commit
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