Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
bd02aa19
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,发现更多精彩内容 >>
提交
bd02aa19
编写于
7月 20, 2016
作者:
W
winniehell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add hover state to todos (!5361)
上级
7dde4ed2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
49 addition
and
14 deletion
+49
-14
CHANGELOG
CHANGELOG
+1
-0
app/assets/stylesheets/pages/todos.scss
app/assets/stylesheets/pages/todos.scss
+40
-7
app/views/dashboard/todos/_todo.html.haml
app/views/dashboard/todos/_todo.html.haml
+8
-7
未找到文件。
CHANGELOG
浏览文件 @
bd02aa19
...
...
@@ -41,6 +41,7 @@ v 8.11.0 (unreleased)
- Update `timeago` plugin to use multiple string/locale settings
- Remove unused images (ClemMakesApps)
- Get issue and merge request description templates from repositories
- Add hover state to todos !5361 (winniehell)
- Limit git rev-list output count to one in forced push check
- Show deployment status on merge requests with external URLs
- Clean up unused routes (Josef Strzibny)
...
...
app/assets/stylesheets/pages/todos.scss
浏览文件 @
bd02aa19
...
...
@@ -20,10 +20,43 @@
}
}
.todo
{
.todos-list
>
.todo
{
// workaround because we cannot use border-colapse
border-top
:
1px
solid
transparent
;
display
:
-
webkit-flex
;
display
:
flex
;
-webkit-flex-direction
:
row
;
flex-direction
:
row
;
&
:hover
{
background-color
:
$row-hover
;
border-color
:
$row-hover-border
;
cursor
:
pointer
;
}
// overwrite border style of .content-list
&
:last-child
{
border-bottom
:
1px
solid
transparent
;
&
:hover
{
border-color
:
$row-hover-border
;
}
}
.todo-actions
{
display
:
-
webkit-flex
;
display
:
flex
;
-webkit-justify-content
:
center
;
justify-content
:
center
;
-webkit-flex-direction
:
column
;
flex-direction
:
column
;
margin-left
:
10px
;
}
.todo-item
{
-webkit-flex
:
auto
;
flex
:
auto
;
}
}
.todo-item
{
...
...
@@ -43,8 +76,6 @@
}
.todo-body
{
margin-right
:
174px
;
.todo-note
{
word-wrap
:
break-word
;
...
...
@@ -90,6 +121,12 @@
}
@media
(
max-width
:
$screen-xs-max
)
{
.todo
{
.avatar
{
display
:
none
;
}
}
.todo-item
{
.todo-title
{
white-space
:
normal
;
...
...
@@ -98,10 +135,6 @@
margin-bottom
:
10px
;
}
.avatar
{
display
:
none
;
}
.todo-body
{
margin
:
0
;
border-left
:
2px
solid
#ddd
;
...
...
app/views/dashboard/todos/_todo.html.haml
浏览文件 @
bd02aa19
%li
{
class:
"todo todo-#{todo.done? ? 'done' : 'pending'}"
,
id:
dom_id
(
todo
),
data
:{
url:
todo_target_path
(
todo
)}
}
=
author_avatar
(
todo
,
size:
40
)
.todo-item.todo-block
=
image_tag
avatar_icon
(
todo
.
author_email
,
40
),
class:
'avatar s40'
,
alt
:''
.todo-title.title
-
unless
todo
.
build_failed?
=
todo_target_state_pill
(
todo
)
...
...
@@ -19,13 +20,13 @@
·
#{
time_ago_with_tooltip
(
todo
.
created_at
)
}
-
if
todo
.
pending?
.todo-actions.pull-right
=
link_to
[
:dashboard
,
todo
],
method: :delete
,
class:
'btn btn-loading done-todo'
do
Done
=
icon
(
'spinner spin'
)
.todo-body
.todo-note
.md
=
event_note
(
todo
.
body
,
project:
todo
.
project
)
-
if
todo
.
pending?
.todo-actions
=
link_to
[
:dashboard
,
todo
],
method: :delete
,
class:
'btn btn-loading done-todo'
do
Done
=
icon
(
'spinner spin'
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录