Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
e8666898
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,发现更多精彩内容 >>
未验证
提交
e8666898
编写于
9月 18, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Style CI project/build list
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
0aec0d53
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
21 addition
and
46 deletion
+21
-46
app/assets/stylesheets/ci/projects.scss
app/assets/stylesheets/ci/projects.scss
+1
-26
app/helpers/ci/builds_helper.rb
app/helpers/ci/builds_helper.rb
+5
-5
app/helpers/ci/commits_helper.rb
app/helpers/ci/commits_helper.rb
+6
-6
app/views/ci/admin/builds/_build.html.haml
app/views/ci/admin/builds/_build.html.haml
+1
-1
app/views/ci/admin/projects/_project.html.haml
app/views/ci/admin/projects/_project.html.haml
+1
-1
app/views/ci/admin/runners/show.html.haml
app/views/ci/admin/runners/show.html.haml
+1
-1
app/views/ci/builds/_build.html.haml
app/views/ci/builds/_build.html.haml
+1
-1
app/views/ci/builds/show.html.haml
app/views/ci/builds/show.html.haml
+2
-2
app/views/ci/commits/_commit.html.haml
app/views/ci/commits/_commit.html.haml
+1
-1
app/views/ci/commits/show.html.haml
app/views/ci/commits/show.html.haml
+1
-1
app/views/ci/projects/_project.html.haml
app/views/ci/projects/_project.html.haml
+1
-1
未找到文件。
app/assets/stylesheets/ci/projects.scss
浏览文件 @
e8666898
...
...
@@ -13,31 +13,6 @@
.builds
,
.projects-table
{
.alert-success
{
background-color
:
#6fc995
;
border-color
:
#5bba83
;
}
.alert-danger
{
background-color
:
#eb897f
;
border-color
:
#d4776e
;
}
.alert-info
{
background-color
:
#3498db
;
border-color
:
#2e8ece
;
}
.alert-warning
{
background-color
:
#EB974E
;
border-color
:
#E87E04
;
}
.alert-disabled
{
background
:
$background-color
;
border-color
:
$border-color
;
}
.light
{
border-color
:
$border-color
;
}
...
...
@@ -47,8 +22,8 @@
}
td
{
color
:
$gl-gray
;
vertical-align
:
middle
!
important
;
border-color
:
inherit
!
important
;
a
{
font-weight
:
normal
;
...
...
app/helpers/ci/builds_helper.rb
浏览文件 @
e8666898
...
...
@@ -16,15 +16,15 @@ module Ci
ci_project_build_url
(
build
.
project
,
build
)
end
def
build_status_
alert
_class
(
build
)
def
build_status_
css
_class
(
build
)
if
build
.
success?
'
alert
-success'
'
build
-success'
elsif
build
.
failed?
'
alert
-danger'
'
build
-danger'
elsif
build
.
canceled?
'
alert
-disabled'
'
build
-disabled'
else
'
alert
-warning'
'
build
-warning'
end
end
...
...
app/helpers/ci/commits_helper.rb
浏览文件 @
e8666898
module
Ci
module
CommitsHelper
def
commit_status_
alert
_class
(
commit
)
return
'
alert
-info'
unless
commit
def
commit_status_
css
_class
(
commit
)
return
'
build
-info'
unless
commit
case
commit
.
status
when
'success'
'
alert
-success'
'
build
-success'
when
'failed'
,
'canceled'
'
alert
-danger'
'
build
-danger'
when
'skipped'
'
alert
-disabled'
'
build
-disabled'
else
'
alert
-warning'
'
build
-warning'
end
end
...
...
app/views/ci/admin/builds/_build.html.haml
浏览文件 @
e8666898
-
if
build
.
commit
&&
build
.
project
%tr
.build
.alert
{
class:
build_status_alert
_class
(
build
)}
%tr
.build
{
class:
build_status_css
_class
(
build
)}
%td
.build-link
=
link_to
ci_project_build_url
(
build
.
project
,
build
)
do
%strong
#{
build
.
id
}
...
...
app/views/ci/admin/projects/_project.html.haml
浏览文件 @
e8666898
-
last_commit
=
project
.
last_commit
%tr
.alert
{
class:
commit_status_alert
_class
(
last_commit
)
}
%tr
{
class:
commit_status_css
_class
(
last_commit
)
}
%td
=
project
.
id
%td
...
...
app/views/ci/admin/runners/show.html.haml
浏览文件 @
e8666898
...
...
@@ -102,7 +102,7 @@
%th
Finished at
-
@builds
.
each
do
|
build
|
%tr
.build.alert
{
class:
build_status_
alert
_class
(
build
)}
%tr
.build.alert
{
class:
build_status_
css
_class
(
build
)}
%td
.status
=
build
.
status
...
...
app/views/ci/builds/_build.html.haml
浏览文件 @
e8666898
%tr
.build
.alert
{
class:
build_status_alert
_class
(
build
)}
%tr
.build
{
class:
build_status_css
_class
(
build
)}
%td
.status
=
build
.
status
...
...
app/views/ci/builds/show.html.haml
浏览文件 @
e8666898
...
...
@@ -21,7 +21,7 @@
.row
.col-md-9
.build-head.alert
{
class:
build_status_
alert
_class
(
@build
)}
.build-head.alert
{
class:
build_status_
css
_class
(
@build
)}
%h4
-
if
@build
.
commit
.
tag?
Build for tag
...
...
@@ -150,7 +150,7 @@
%h4
.title
#{
pluralize
(
@builds
.
count
,
"other build"
)
}
for
#{
@build
.
short_sha
}
:
%table
.builds
-
@builds
.
each_with_index
do
|
build
,
i
|
%tr
.build.alert
{
class:
build_status_
alert
_class
(
build
)}
%tr
.build.alert
{
class:
build_status_
css
_class
(
build
)}
%td
=
link_to
ci_project_build_url
(
@project
,
build
)
do
%span
##{build.id}
...
...
app/views/ci/commits/_commit.html.haml
浏览文件 @
e8666898
%tr
.build
.alert
{
class:
commit_status_alert
_class
(
commit
)}
%tr
.build
{
class:
commit_status_css
_class
(
commit
)}
%td
.status
=
commit
.
status
-
if
commit
.
running?
...
...
app/views/ci/commits/show.html.haml
浏览文件 @
e8666898
...
...
@@ -44,7 +44,7 @@
%h3
Status
.build.alert
{
class:
commit_status_
alert
_class
(
@commit
)}
.build.alert
{
class:
commit_status_
css
_class
(
@commit
)}
.status
=
@commit
.
status
.
titleize
...
...
app/views/ci/projects/_project.html.haml
浏览文件 @
e8666898
-
last_commit
=
project
.
last_commit
%tr
.alert
{
class:
commit_status_alert
_class
(
last_commit
)
}
%tr
{
class:
commit_status_css
_class
(
last_commit
)
}
%td
=
link_to
[
:ci
,
project
]
do
=
project
.
name
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录