Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
034ddb85
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,发现更多精彩内容 >>
提交
034ddb85
编写于
6月 18, 2012
作者:
R
randx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Assignee filter for issues
上级
2dd17623
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
5 deletion
+9
-5
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/gitlab_bootstrap.scss
+1
-0
app/controllers/issues_controller.rb
app/controllers/issues_controller.rb
+1
-0
app/views/issues/_issues.html.haml
app/views/issues/_issues.html.haml
+1
-1
app/views/issues/index.html.haml
app/views/issues/index.html.haml
+6
-4
未找到文件。
app/assets/stylesheets/gitlab_bootstrap.scss
浏览文件 @
034ddb85
...
...
@@ -400,6 +400,7 @@ form {
*
*/
.ui-box
{
background
:
#F9F9F9
;
margin-bottom
:
40px
;
@include
round-borders-all
(
4px
);
border-color
:
#CCC
;
...
...
app/controllers/issues_controller.rb
浏览文件 @
034ddb85
...
...
@@ -137,6 +137,7 @@ class IssuesController < ApplicationController
else
@project
.
issues
.
opened
end
@issues
=
@issues
.
where
(
:assignee_id
=>
params
[
:assignee_id
])
if
params
[
:assignee_id
].
present?
@issues
=
@issues
.
where
(
:milestone_id
=>
params
[
:milestone_id
])
if
params
[
:milestone_id
].
present?
@issues
=
@issues
.
includes
(
:author
,
:project
).
order
(
"critical, updated_at"
)
@issues
...
...
app/views/issues/_issues.html.haml
浏览文件 @
034ddb85
...
...
@@ -12,4 +12,4 @@
%span
.cgray.right
#{
@issues
.
total_count
}
issues for this filter
-
else
%li
%
p
.padded
Nothing to show here
%
h4
.nothing_here_message
Nothing to show here
app/views/issues/index.html.haml
浏览文件 @
034ddb85
...
...
@@ -17,7 +17,7 @@
%div
#issues-table-holder
.ui-box
.title
.row
.span
6
.span
4
%ul
.nav.nav-pills.left
%li
{
:class
=>
(
"active"
if
(
params
[
:f
]
==
"0"
||
!
params
[
:f
]))}
=
link_to
project_issues_path
(
@project
,
:f
=>
0
,
:milestone_id
=>
params
[
:milestone_id
])
do
...
...
@@ -32,9 +32,10 @@
=
link_to
project_issues_path
(
@project
,
:f
=>
1
,
:milestone_id
=>
params
[
:milestone_id
])
do
All
.span
4
.right
.span
6
.right
=
form_tag
project_issues_path
(
@project
),
:method
=>
:get
,
:class
=>
:right
do
=
select_tag
(
:milestone_id
,
options_from_collection_for_select
(
@project
.
milestones
.
order
(
"id desc"
).
all
,
"id"
,
"title"
,
params
[
:milestone_id
]),
:prompt
=>
"Select milestone"
)
=
select_tag
(
:assignee_id
,
options_from_collection_for_select
(
@project
.
users
.
all
,
"id"
,
"name"
,
params
[
:assignee_id
]),
:prompt
=>
"Assignee"
)
=
select_tag
(
:milestone_id
,
options_from_collection_for_select
(
@project
.
milestones
.
order
(
"id desc"
).
all
,
"id"
,
"title"
,
params
[
:milestone_id
]),
:prompt
=>
"Milestone"
)
=
hidden_field_tag
:f
,
params
[
:f
]
%ul
#issues-table
.unstyled
...
...
@@ -44,8 +45,9 @@
$
(
function
(){
initIssuesSearch
();
setSortable
();
$
(
"
#assignee_id
"
).
chosen
();
$
(
"
#milestone_id
"
).
chosen
();
$
(
"
#milestone_id
"
).
live
(
"
change
"
,
function
(){
$
(
"
#milestone_id
, #assignee_id
"
).
live
(
"
change
"
,
function
(){
$
(
this
).
closest
(
"
form
"
).
submit
();
});
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录