Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
6664da43
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,发现更多精彩内容 >>
提交
6664da43
编写于
3月 27, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Small css improvements to selectboxes and issue filter
上级
4d9b4d35
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
55 addition
and
47 deletion
+55
-47
app/assets/stylesheets/generic/filters.scss
app/assets/stylesheets/generic/filters.scss
+34
-4
app/assets/stylesheets/generic/selects.scss
app/assets/stylesheets/generic/selects.scss
+9
-4
app/assets/stylesheets/pages/issues.scss
app/assets/stylesheets/pages/issues.scss
+2
-29
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+0
-10
app/views/shared/_issuable_filter.html.haml
app/views/shared/_issuable_filter.html.haml
+10
-0
未找到文件。
app/assets/stylesheets/generic/filters.scss
浏览文件 @
6664da43
...
...
@@ -3,10 +3,13 @@
}
.issues-state-filters
{
li
.active
a
,
li
.active
a
:hover
{
background
:
#f5f5f5
;
border-bottom
:
1px
solid
#f5f5f5
!
important
;
li
.active
a
{
border-color
:
#DDD
!
important
;
&
,
&
:hover
,
&
:active
,
&
.active
{
background
:
#f5f5f5
!
important
;
border-bottom
:
1px
solid
#f5f5f5
!
important
;
}
}
}
...
...
@@ -23,3 +26,30 @@
font-size
:
13px
;
}
}
@media
(
min-width
:
800px
)
{
.issues-filters
,
.issues_bulk_update
{
select
,
.select2-container
{
width
:
120px
!
important
;
display
:
inline-block
;
}
}
}
@media
(
min-width
:
1200px
)
{
.issues-filters
,
.issues_bulk_update
{
select
,
.select2-container
{
width
:
150px
!
important
;
display
:
inline-block
;
}
}
}
.issues-filters
,
.issues_bulk_update
{
.select2-container
.select2-choice
{
color
:
#444
!
important
;
}
}
app/assets/stylesheets/generic/selects.scss
浏览文件 @
6664da43
...
...
@@ -2,20 +2,25 @@
.select2-container
,
.select2-container.select2-drop-above
{
.select2-choice
{
background
:
#FFF
;
border-color
:
#CCC
;
border-color
:
#DDD
;
height
:
34px
;
padding
:
6px
14px
;
font-size
:
14px
;
line-height
:
1
.42857143
;
height
:
auto
;
@include
border-radius
(
4px
);
.select2-arrow
{
background
:
#FFF
;
border-left
:
1px
solid
#DDD
;
border-left
:
none
;
padding-top
:
3px
;
}
}
}
.select2-container-multi
.select2-choices
{
@include
border-radius
(
4px
)
@include
border-radius
(
4px
);
border-color
:
#CCC
;
}
.select2-container-multi
.select2-choices
.select2-search-field
input
{
...
...
app/assets/stylesheets/pages/issues.scss
浏览文件 @
6664da43
...
...
@@ -56,33 +56,6 @@
}
}
@media
(
min-width
:
800px
)
{
.issues-filters
,
.issues_bulk_update
{
select
,
.select2-container
{
width
:
120px
!
important
;
display
:
inline-block
;
}
}
}
@media
(
min-width
:
1200px
)
{
.issues-filters
,
.issues_bulk_update
{
select
,
.select2-container
{
width
:
150px
!
important
;
display
:
inline-block
;
}
}
}
.issues-filters
,
.issues_bulk_update
{
.select2-container
.select2-choice
{
color
:
#444
!
important
;
}
}
.participants
{
margin-bottom
:
20px
;
}
...
...
@@ -120,12 +93,12 @@ form.edit-issue {
}
&
.closed
{
background
:
#F
5f5f5
;
background
:
#F
9F9F9
;
border-color
:
#E5E5E5
;
}
&
.merged
{
background
:
#F
5f5f5
;
background
:
#F
9F9F9
;
border-color
:
#E5E5E5
;
}
}
...
...
app/views/projects/issues/index.html.haml
浏览文件 @
6664da43
...
...
@@ -15,15 +15,5 @@
=
render
'shared/issuable_filter'
.clearfix
.issues_bulk_update.hide
=
form_tag
bulk_update_namespace_project_issues_path
(
@project
.
namespace
,
@project
),
method: :post
do
=
select_tag
(
'update[state_event]'
,
options_for_select
([[
'Open'
,
'reopen'
],
[
'Closed'
,
'close'
]]),
prompt:
"Status"
,
class:
'form-control'
)
=
users_select_tag
(
'update[assignee_id]'
,
placeholder:
'Assignee'
,
null_user:
true
)
=
select_tag
(
'update[milestone_id]'
,
bulk_update_milestone_options
,
prompt:
"Milestone"
)
=
hidden_field_tag
'update[issues_ids]'
,
[]
=
hidden_field_tag
:state_event
,
params
[
:state_event
]
=
button_tag
"Update issues"
,
class:
"btn update_selected_issues btn-save"
.issues-holder
=
render
"issues"
app/views/shared/_issuable_filter.html.haml
浏览文件 @
6664da43
...
...
@@ -40,6 +40,16 @@
.pull-right
=
render
'shared/sort_dropdown'
-
if
controller
.
controller_name
==
'issues'
.issues_bulk_update.hide
=
form_tag
bulk_update_namespace_project_issues_path
(
@project
.
namespace
,
@project
),
method: :post
do
=
select_tag
(
'update[state_event]'
,
options_for_select
([[
'Open'
,
'reopen'
],
[
'Closed'
,
'close'
]]),
prompt:
"Status"
,
class:
'form-control'
)
=
users_select_tag
(
'update[assignee_id]'
,
placeholder:
'Assignee'
,
null_user:
true
)
=
select_tag
(
'update[milestone_id]'
,
bulk_update_milestone_options
,
prompt:
"Milestone"
)
=
hidden_field_tag
'update[issues_ids]'
,
[]
=
hidden_field_tag
:state_event
,
params
[
:state_event
]
=
button_tag
"Update issues"
,
class:
"btn update_selected_issues btn-save"
:coffeescript
new UsersSelect()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录