Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
f361be9e
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f361be9e
编写于
7月 31, 2014
作者:
R
Robert Schilling
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Restyle search page
Use ruby 1.9 syntax
上级
da7e14c8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
5 deletion
+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
未找到文件。
app/assets/stylesheets/generic/common.scss
浏览文件 @
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
浏览文件 @
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
浏览文件 @
f361be9e
.search_box
.search_glyph
%span
.icon-search
%h4
#{
message
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录