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
89d0d75c
Commit
89d0d75c
authored
Aug 07, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better filter var for MR. show reset filter only if makes sense
parent
a43a3803
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
app/contexts/merge_requests_load_context.rb
app/contexts/merge_requests_load_context.rb
+1
-1
app/views/projects/issues/_filter.html.haml
app/views/projects/issues/_filter.html.haml
+5
-2
app/views/projects/merge_requests/_filter.html.haml
app/views/projects/merge_requests/_filter.html.haml
+12
-11
No files found.
app/contexts/merge_requests_load_context.rb
View file @
89d0d75c
...
...
@@ -2,7 +2,7 @@
# based on filtering passed via params for @project
class
MergeRequestsLoadContext
<
BaseContext
def
execute
type
=
params
[
:
f
]
type
=
params
[
:
status
]
merge_requests
=
project
.
merge_requests
...
...
app/views/projects/issues/_filter.html.haml
View file @
89d0d75c
...
...
@@ -18,6 +18,9 @@
All
%fieldset
%hr
=
link_to
"Reset"
,
project_issues_path
(
@project
),
class:
'btn pull-right'
-
if
%w(status milestone_id assignee_id label_name)
.
select
{
|
k
|
params
[
k
].
present?
}.
any?
=
link_to
project_issues_path
(
@project
),
class:
'cgray pull-right'
do
%i
.icon-remove
Clear filter
app/views/projects/merge_requests/_filter.html.haml
View file @
89d0d75c
=
form_tag
project_issues_path
(
@project
),
method:
'get'
do
%fieldset
%ul
.nav.nav-pills.nav-stacked
%li
{
class:
(
"active"
if
(
params
[
:
f
]
==
'open'
||
!
params
[
:f
]))}
=
link_to
project_merge_requests_path
(
@project
,
f
:
'open'
,
milestone_id:
params
[
:milestone_id
])
do
%li
{
class:
(
"active"
if
(
params
[
:
status
]
==
'open'
||
!
params
[
:status
]))}
=
link_to
project_merge_requests_path
(
@project
,
status
:
'open'
,
milestone_id:
params
[
:milestone_id
])
do
Open
%li
{
class:
(
"active"
if
params
[
:
f
]
==
"closed"
)}
=
link_to
project_merge_requests_path
(
@project
,
f
:
"closed"
,
milestone_id:
params
[
:milestone_id
])
do
%li
{
class:
(
"active"
if
params
[
:
status
]
==
"closed"
)}
=
link_to
project_merge_requests_path
(
@project
,
status
:
"closed"
,
milestone_id:
params
[
:milestone_id
])
do
Closed
%li
{
class:
(
"active"
if
params
[
:
f
]
==
'assigned-to-me'
)}
=
link_to
project_merge_requests_path
(
@project
,
f
:
'assigned-to-me'
,
milestone_id:
params
[
:milestone_id
])
do
%li
{
class:
(
"active"
if
params
[
:
status
]
==
'assigned-to-me'
)}
=
link_to
project_merge_requests_path
(
@project
,
status
:
'assigned-to-me'
,
milestone_id:
params
[
:milestone_id
])
do
Assigned To Me
%li
{
class:
(
"active"
if
params
[
:
f
]
==
'all'
)}
=
link_to
project_merge_requests_path
(
@project
,
f
:
'all'
,
milestone_id:
params
[
:milestone_id
])
do
%li
{
class:
(
"active"
if
params
[
:
status
]
==
'all'
)}
=
link_to
project_merge_requests_path
(
@project
,
status
:
'all'
,
milestone_id:
params
[
:milestone_id
])
do
All
%fieldset
%hr
=
link_to
"Reset"
,
project_merge_requests_path
(
@project
),
class:
'btn pull-right'
-
if
%w(status milestone_id assignee_id label_name)
.
select
{
|
k
|
params
[
k
].
present?
}.
any?
=
link_to
project_merge_requests_path
(
@project
),
class:
'cgray pull-right'
do
%i
.icon-remove
Clear filter
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