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
dcdf214f
Commit
dcdf214f
authored
Aug 27, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More compact search page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3d02ead9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
app/assets/stylesheets/pages/search.scss
app/assets/stylesheets/pages/search.scss
+3
-3
app/views/search/_category.html.haml
app/views/search/_category.html.haml
+1
-1
app/views/search/show.html.haml
app/views/search/show.html.haml
+1
-2
No files found.
app/assets/stylesheets/pages/search.scss
View file @
dcdf214f
.search-results
{
.search-results
{
.search-result-row
{
.search-result-row
{
border-bottom
:
1px
solid
#
EEE
;
border-bottom
:
1px
solid
#
DDD
;
padding-bottom
:
1
0
px
;
padding-bottom
:
1
5
px
;
margin-bottom
:
1
0
px
;
margin-bottom
:
1
5
px
;
}
}
}
}
app/views/search/_category.html.haml
View file @
dcdf214f
%ul
.nav.nav-
pill
s.search-filter
%ul
.nav.nav-
tab
s.search-filter
-
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
...
...
app/views/search/show.html.haml
View file @
dcdf214f
-
page_title
@search_term
-
page_title
@search_term
=
render
'search/form'
=
render
'search/form'
%
h
r
%
b
r
-
if
@search_term
-
if
@search_term
=
render
'search/category'
=
render
'search/category'
%hr
=
render
'search/results'
=
render
'search/results'
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