Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
188a74c3
Commit
188a74c3
authored
May 08, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init filter links
parent
1e78ceea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+11
-0
app/views/issues/_issues.html.haml
app/views/issues/_issues.html.haml
+4
-4
No files found.
app/helpers/issues_helper.rb
View file @
188a74c3
...
@@ -78,4 +78,15 @@ module IssuesHelper
...
@@ -78,4 +78,15 @@ module IssuesHelper
""
""
end
end
end
end
def
project_issues_with_filter_path
(
project
,
opts
)
default_opts
=
{
status:
params
[
:status
],
label_name:
params
[
:label_name
],
milestone_id:
params
[
:milestone_id
],
assignee_id:
params
[
:assignee_id
],
}
project_issues_path
(
@project
,
default_opts
.
merge
(
opts
))
end
end
end
app/views/issues/_issues.html.haml
View file @
188a74c3
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%a
.dropdown-toggle.btn.btn-small
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.icon-tags
%i
.icon-tags
%span
.light
labels:
%span
.light
labels:
-
if
params
[
:label_name
]
-
if
params
[
:label_name
]
.
present?
%strong
=
params
[
:label_name
]
%strong
=
params
[
:label_name
]
-
else
-
else
Any
Any
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
%ul
.dropdown-menu
%ul
.dropdown-menu
-
issue_label_names
.
each
do
|
label_name
|
-
issue_label_names
.
each
do
|
label_name
|
%li
%li
=
link_to
'#'
do
=
link_to
project_issues_with_filter_path
(
@project
,
label_name:
label_name
)
do
%span
{
class:
"label #{label_css_class(label_name)}"
}
%span
{
class:
"label #{label_css_class(label_name)}"
}
%i
.icon-tag
%i
.icon-tag
=
label_name
=
label_name
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
%ul
.dropdown-menu
%ul
.dropdown-menu
-
@project
.
users
.
sort_by
(
&
:name
).
each
do
|
user
|
-
@project
.
users
.
sort_by
(
&
:name
).
each
do
|
user
|
%li
%li
=
link_to
'#'
do
=
link_to
project_issues_with_filter_path
(
@project
,
assignee_id:
user
.
id
)
do
=
image_tag
gravatar_icon
(
user
.
email
),
class:
"avatar s16"
=
image_tag
gravatar_icon
(
user
.
email
),
class:
"avatar s16"
=
user
.
name
=
user
.
name
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
%ul
.dropdown-menu
%ul
.dropdown-menu
-
issues_active_milestones
.
each
do
|
milestone
|
-
issues_active_milestones
.
each
do
|
milestone
|
%li
%li
=
link_to
'#'
do
=
link_to
project_issues_with_filter_path
(
@project
,
milestone_id:
milestone
.
id
)
do
%strong
=
milestone
.
title
%strong
=
milestone
.
title
%small
.light
=
milestone
.
expires_at
%small
.light
=
milestone
.
expires_at
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment