Restyle search page

Use ruby 1.9 syntax
This commit is contained in:
Robert Schilling 2014-07-31 00:07:40 +02:00
parent da7e14c864
commit f361be9eca
3 changed files with 27 additions and 5 deletions

View file

@ -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;
}

View file

@ -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" }

View file

@ -0,0 +1,4 @@
.search_box
.search_glyph
%span.icon-search
%h4 #{message}