Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
f8c572a2
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,发现更多精彩内容 >>
提交
f8c572a2
编写于
11月 09, 2016
作者:
A
Alfredo Sumaran
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply styling to ItemCommitComponent
上级
fe72c3fe
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
49 addition
and
19 deletion
+49
-19
app/assets/javascripts/cycle_analytics/components/item_commit_component.js.es6
...s/cycle_analytics/components/item_commit_component.js.es6
+29
-2
app/assets/javascripts/cycle_analytics/components/stage_plan_component.js.es6
...ts/cycle_analytics/components/stage_plan_component.js.es6
+2
-2
app/assets/stylesheets/pages/cycle_analytics.scss
app/assets/stylesheets/pages/cycle_analytics.scss
+18
-0
app/views/projects/cycle_analytics/show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+0
-15
未找到文件。
app/assets/javascripts/cycle_analytics/components/item_commit_component.js.es6
浏览文件 @
f8c572a2
...
...
@@ -14,9 +14,36 @@
*/
global.cycleAnalytics.ItemCommitComponent = Vue.extend({
template: '#item-commit-component',
props: {
commit: Object,
}
},
template: `
<div class="item-details item-conmmit-component">
<h5 class="item-title">
<a href="commit.url">{{ commit.title }}</a>
</h5>
<span>
First
<span class="commit-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 40 40">
<path fill="#8F8F8F" fill-rule="evenodd" d="M28.7769836,18 C27.8675252,13.9920226 24.2831748,11 20,11 C15.7168252,11 12.1324748,13.9920226 11.2230164,18 L4.0085302,18 C2.90195036,18 2,18.8954305 2,20 C2,21.1122704 2.8992496,22 4.0085302,22 L11.2230164,22 C12.1324748,26.0079774 15.7168252,29 20,29 C24.2831748,29 27.8675252,26.0079774 28.7769836,22 L35.9914698,22 C37.0980496,22 38,21.1045695 38,20 C38,18.8877296 37.1007504,18 35.9914698,18 L28.7769836,18 L28.7769836,18 Z M20,25 C22.7614237,25 25,22.7614237 25,20 C25,17.2385763 22.7614237,15 20,15 C17.2385763,15 15,17.2385763 15,20 C15,22.7614237 17.2385763,25 20,25 L20,25 Z"/>
</svg>
</span>
<a href="#" class="commit-hash-link monospace">{{ commit.hash }}</a>
pushed by
<a href="commit.profile" class="commit-author-link">{{ commit.author }}</a>
</span>
</div>
<div class="item-time">
<span class="hours" v-if="commit.totalTime.hours">
{{ commit.totalTime.hours }}
<abbr title="Hours">hr</abbr>
</span>
<span class="minutes" v-if="commit.totalTime.minutes">
{{ commit.totalTime.minutes }}
<abbr title="Minutes">mins</abbr>
</span>
</div>
`,
});
}(window.gl || (window.gl = {})));
app/assets/javascripts/cycle_analytics/components/stage_plan_component.js.es6
浏览文件 @
f8c572a2
...
...
@@ -14,8 +14,8 @@
<div class="events-description">
Time before an issue starts implementation
</div>
<ul class="event-list">
<li class="event-item" v-for="commit in items">
<ul class="
stage-
event-list">
<li class="
stage-
event-item" v-for="commit in items">
<item-commit-component :commit="commit"></item-commit-component>
</li>
</ul>
...
...
app/assets/stylesheets/pages/cycle_analytics.scss
浏览文件 @
f8c572a2
...
...
@@ -327,5 +327,23 @@
color
:
$gl-text-color
;
}
}
.commit-author-link
{
color
:
$gl-dark-link-color
;
}
// Custom CSS for components
.item-conmmit-component
{
.commit-icon
{
position
:
relative
;
top
:
3px
;
left
:
1px
;
display
:
inline-block
;
svg
{
float
:
left
;
}
}
}
}
}
app/views/projects/cycle_analytics/show.html.haml
浏览文件 @
f8c572a2
...
...
@@ -119,7 +119,6 @@
%li
{
"v-for"
=>
"mergeRequest in items"
}
%item-merge-request-component
{
":merge-request"
=>
"mergeRequest"
}
%script
{
type:
'text/x-template'
,
id:
'stage-staging-component'
}
%div
.events-description
...
...
@@ -136,20 +135,6 @@
%li
{
"v-for"
=>
"issue in items"
}
%item-issue-component
{
":issue"
=>
"issue"
}
%script
{
type:
'text/x-template'
,
id:
'item-commit-component'
}
%div
%p
%h5
%a
{
:href
=>
"commit.url"
}
{{ commit.title }}
%span
First
%a
{
:href
=>
"#"
}
{{ commit.hash }}
pushed by
%a
{
:href
=>
"commit.profile"
}
{{ commit.author }}
%script
{
type:
'text/x-template'
,
id:
'item-merge-request-component'
}
%div
%p
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录