Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
cdafef9b
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,发现更多精彩内容 >>
提交
cdafef9b
编写于
11月 17, 2016
作者:
A
Alfredo Sumaran
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update ItemBuildComponent html structure
上级
c0c4b276
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
79 addition
and
8 deletion
+79
-8
app/assets/javascripts/cycle_analytics/components/item_build_component.js.es6
...ts/cycle_analytics/components/item_build_component.js.es6
+34
-6
app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6
...ts/cycle_analytics/components/item_issue_component.js.es6
+1
-1
app/assets/stylesheets/pages/cycle_analytics.scss
app/assets/stylesheets/pages/cycle_analytics.scss
+44
-1
未找到文件。
app/assets/javascripts/cycle_analytics/components/item_build_component.js.es6
浏览文件 @
cdafef9b
...
...
@@ -20,14 +20,42 @@
build: Object,
},
template: `
<div>
<p>
<h5>
<a href="build.url">
{{ build.title }}
<div class="item-build-component">
<div class="item-details">
<h5 class="item-title">
<span class="icon-build-status">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14">
<g fill="#31AF64" fill-rule="evenodd">
<path d="M12.5 7c0-3.038-2.462-5.5-5.5-5.5S1.5 3.962 1.5 7s2.462 5.5 5.5 5.5 5.5-2.462 5.5-5.5zM0 7c0-3.866 3.134-7 7-7s7 3.134 7 7-3.134 7-7 7-7-3.134-7-7z"/>
<path d="M6.28 7.697L5.045 6.464c-.117-.117-.305-.117-.42-.002l-.614.614c-.112.113-.113.303.004.42l1.91 1.91c.19.19.51.197.703.004l.265-.265L9.997 6.04c.108-.107.107-.293-.01-.408l-.612-.614c-.114-.113-.298-.12-.41-.01L6.28 7.7z"/>
</g>
</svg>
</span>
<a :href="build.url" class="item-build-name">
{{ build.name }}
</a>
·
<a href="#" class="pipeline-id">
#{{ build.id }}
</a>
<i class="fa fa-code-fork"></i>
<a :href="build.branch.url" class="branch-name monospace">{{ build.branch.name }}</a>
<span class="icon-branch">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14">
<path fill="#8C8C8C" fill-rule="evenodd" d="M9.678 6.722C9.353 5.167 8.053 4 6.5 4S3.647 5.167 3.322 6.722h-2.6c-.397 0-.722.35-.722.778 0 .428.325.778.722.778h2.6C3.647 9.833 4.947 11 6.5 11s2.853-1.167 3.178-2.722h2.6c.397 0 .722-.35.722-.778 0-.428-.325-.778-.722-.778h-2.6zM4.694 7.5c0-1.09.795-1.944 1.806-1.944 1.01 0 1.806.855 1.806 1.944 0 1.09-.795 1.944-1.806 1.944-1.01 0-1.806-.855-1.806-1.944z"/>
</svg>
</span>
<a :href="build.commit_url" class="short-sha monospace">da57eb39</a>
</h5>
</p>
<span>
<a :href="build.url" class="issue-date">
{{ build.date }}
</a>
</span>
</div>
<div class="item-time">
<total-time :time="build.totalTime"></total-time>
</div>
</div>
`,
});
...
...
app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6
浏览文件 @
cdafef9b
...
...
@@ -23,7 +23,7 @@
<div class="item-details">
<img class="avatar" :src="issue.author.avatarUrl">
<h5 class="item-title">
<a :href="issue.url">
<a
class="issue-title"
:href="issue.url">
{{ issue.title }}
</a>
</h5>
...
...
app/assets/stylesheets/pages/cycle_analytics.scss
浏览文件 @
cdafef9b
...
...
@@ -295,7 +295,7 @@
.item-title
{
margin
:
0
0
2px
0
;
a
{
.issue-title
{
color
:
$gl-dark-link-color
;
max-width
:
100%
;
display
:
block
;
...
...
@@ -342,6 +342,49 @@
}
}
}
// Custom Styles for stage items
.item-build-component
{
.item-title
{
.icon-build-status
{
float
:
left
;
margin-right
:
5px
;
}
.item-build-name
{
color
:
$gl-title-color
;
}
.pipeline-id
{
color
:
$gl-title-color
;
padding
:
0
3px
0
0
;
}
.branch-name
{
color
:
$black
;
display
:
inline-block
;
max-width
:
180px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
line-height
:
1
.3
;
vertical-align
:
top
;
}
.short-sha
{
color
:
$gl-link-color
;
line-height
:
1
.3
;
vertical-align
:
top
;
font-weight
:
normal
;
}
.fa
{
color
:
$gl-text-color-light
;
font-size
:
$code_font_size
;
}
}
}
.empty-stage
{
text-align
:
center
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录