BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
5 deletions
+27
-5
common.scss
app/assets/stylesheets/generic/common.scss
+15
-0
_project_results.html.haml
app/views/search/_project_results.html.haml
+8
-5
_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 {
.footer-links
a
{
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 @@
=
render
partial:
"search/results/blob"
,
collection:
@search_results
[
:blobs
]
=
paginate
@search_results
[
:blobs
],
theme:
'gitlab'
-
else
%span
We couldn't find any matching code
=
render
partial:
"search/results/empty"
,
:locals
=>
{
message:
"We couldn't find any matching code"
}
-
else
%ul
.bordered-list
=
render
partial:
"search/results/merge_request"
,
collection:
@search_results
[
:merge_requests
]
=
render
partial:
"search/results/issue"
,
collection:
@search_results
[
:issues
]
=
render
partial:
"search/results/note"
,
collection:
@search_results
[
:notes
]
-
if
(
@search_results
[
:merge_requests
]
||
@search_results
[
:issues
]
||
@search_results
[
:notes
]).
length
>
0
%ul
.bordered-list
=
render
partial:
"search/results/merge_request"
,
collection:
@search_results
[
:merge_requests
]
=
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