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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
f361be9e
Commit
f361be9e
authored
Jul 31, 2014
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle search page
Use ruby 1.9 syntax
parent
da7e14c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
5 deletions
+27
-5
app/assets/stylesheets/generic/common.scss
app/assets/stylesheets/generic/common.scss
+15
-0
app/views/search/_project_results.html.haml
app/views/search/_project_results.html.haml
+8
-5
app/views/search/results/_empty.html.haml
app/views/search/results/_empty.html.haml
+4
-0
No files found.
app/assets/stylesheets/generic/common.scss
View file @
f361be9e
...
@@ -341,3 +341,18 @@ table {
...
@@ -341,3 +341,18 @@ table {
.footer-links
a
{
.footer-links
a
{
margin-right
:
15px
;
margin-right
:
15px
;
}
}
.search_box
{
position
:
relative
;
padding
:
30px
;
text-align
:
center
;
background-color
:
#F9F9F9
;
border
:
1px
solid
#DDDDDD
;
border-radius
:
0px
;
}
.search_glyph
{
color
:
#555
;
font-size
:
42px
;
}
app/views/search/_project_results.html.haml
View file @
f361be9e
...
@@ -13,9 +13,12 @@
...
@@ -13,9 +13,12 @@
=
render
partial:
"search/results/blob"
,
collection:
@search_results
[
:blobs
]
=
render
partial:
"search/results/blob"
,
collection:
@search_results
[
:blobs
]
=
paginate
@search_results
[
:blobs
],
theme:
'gitlab'
=
paginate
@search_results
[
:blobs
],
theme:
'gitlab'
-
else
-
else
%span
We couldn't find any matching code
=
render
partial:
"search/results/empty"
,
:locals
=>
{
message:
"We couldn't find any matching code"
}
-
else
-
else
%ul
.bordered-list
-
if
(
@search_results
[
:merge_requests
]
||
@search_results
[
:issues
]
||
@search_results
[
:notes
]).
length
>
0
=
render
partial:
"search/results/merge_request"
,
collection:
@search_results
[
:merge_requests
]
%ul
.bordered-list
=
render
partial:
"search/results/issue"
,
collection:
@search_results
[
:issues
]
=
render
partial:
"search/results/merge_request"
,
collection:
@search_results
[
:merge_requests
]
=
render
partial:
"search/results/note"
,
collection:
@search_results
[
:notes
]
=
render
partial:
"search/results/issue"
,
collection:
@search_results
[
:issues
]
=
render
partial:
"search/results/note"
,
collection:
@search_results
[
:notes
]
-
else
=
render
partial:
"search/results/empty"
,
:locals
=>
{
message:
"We couldn't find any issues, merge requests or notes"
}
app/views/search/results/_empty.html.haml
0 → 100644
View file @
f361be9e
.search_box
.search_glyph
%span
.icon-search
%h4
#{
message
}
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