Commit 0ffacb8e authored by Phil Hughes's avatar Phil Hughes

Fixed commit search UI

Closes #21868
parent fe3d94e8
...@@ -10,12 +10,16 @@ ...@@ -10,12 +10,16 @@
in group #{link_to @group.name, @group} in group #{link_to @group.name, @group}
.results.prepend-top-10 .results.prepend-top-10
.search-results - if @scope == 'commits'
- if @scope == 'projects' %ul.list-unstyled
.term = render partial: "search/results/commit", collection: @search_objects
= render 'shared/projects/list', projects: @search_objects - else
- else .search-results
= render partial: "search/results/#{@scope.singularize}", collection: @search_objects - if @scope == 'projects'
.term
= render 'shared/projects/list', projects: @search_objects
- else
= render partial: "search/results/#{@scope.singularize}", collection: @search_objects
- if @scope != 'projects' - if @scope != 'projects'
= paginate(@search_objects, theme: 'gitlab') = paginate(@search_objects, theme: 'gitlab')
.search-result-row = render 'projects/commits/commit', project: @project, commit: commit
= render 'projects/commits/commit', project: @project, commit: commit
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