Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
31e1a38b
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,发现更多精彩内容 >>
提交
31e1a38b
编写于
2月 03, 2016
作者:
R
Rubén Dávila
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some refactor for CSS after code review.
上级
5bad3516
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
30 addition
and
22 deletion
+30
-22
app/assets/stylesheets/pages/milestone.scss
app/assets/stylesheets/pages/milestone.scss
+24
-19
app/models/milestone.rb
app/models/milestone.rb
+3
-0
app/views/projects/milestones/_issues.html.haml
app/views/projects/milestones/_issues.html.haml
+2
-2
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+1
-1
未找到文件。
app/assets/stylesheets/pages/milestone.scss
浏览文件 @
31e1a38b
...
...
@@ -12,35 +12,40 @@ li.milestone {
}
}
.time-elapsed
{
color
:
#F14539
;
}
.milestone-content
{
.issues-count
{
margin-right
:
17px
;
float
:
right
;
width
:
105px
;
}
.issue-row
.assignee-icon
{
.color-label
{
float
:
left
;
padding
:
8px
;
margin-left
:
10px
;
.panel-heading
{
font-weight
:
bold
;
}
img
{
margin-left
:
8px
;
.issue-row
.assignee-icon
{
.color-label
{
float
:
left
;
padding
:
8px
;
margin-left
:
10px
;
}
img
{
margin-left
:
8px
;
}
}
}
.milestone-summary
{
margin-bottom
:
25px
;
}
.milestone-stat
{
margin-right
:
10px
;
}
.milestone-stat
{
margin-right
:
10px
;
}
#tab-labels
.issues-count
{
margin-right
:
17px
;
float
:
right
;
width
:
105px
;
.time-elapsed
{
color
:
$orange-light
;
}
}
.issues-sortable-list
{
...
...
app/models/milestone.rb
浏览文件 @
31e1a38b
...
...
@@ -110,6 +110,9 @@ class Milestone < ActiveRecord::Base
0
end
# Returns the elapsed time (in percent) since the Milestone creation date until today.
# If the Milestone doesn't have a due_date then returns 0 since we can't calculate the elapsed time.
# If the Milestone is overdue then it returns 100%.
def
percent_time_used
return
0
unless
due_date
return
100
if
expired?
...
...
app/views/projects/milestones/_issues.html.haml
浏览文件 @
31e1a38b
.panel.panel-default
.panel-heading
%strong
=
title
%strong
.pull-right
=
issues
.
size
=
title
.pull-right
=
issues
.
size
%ul
{
class:
"well-list issues-sortable-list"
,
id:
"issues-list-#{id}"
,
"data-state"
=>
id
}
-
issues
.
sort_by
(
&
:position
).
each
do
|
issue
|
=
render
'issue'
,
issue:
issue
app/views/projects/milestones/show.html.haml
浏览文件 @
31e1a38b
...
...
@@ -94,7 +94,7 @@
Labels
%span
.badge
=
@labels
.
count
.tab-content
.tab-content
.milestone-content
.tab-pane.active
#tab-issues
.row.prepend-top-default
.col-md-4
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录