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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
602c3e30
Commit
602c3e30
authored
Feb 17, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
local_assigns already returns nil for missing keys
parent
1d009f91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
app/views/shared/issuable/_filter.html.haml
app/views/shared/issuable/_filter.html.haml
+1
-1
app/views/shared/issuable/_milestone_dropdown.html.haml
app/views/shared/issuable/_milestone_dropdown.html.haml
+2
-6
No files found.
app/views/shared/issuable/_filter.html.haml
View file @
602c3e30
-
finder
=
controller
.
controller_name
==
'issues'
||
controller
.
controller_name
==
'boards'
?
issues_finder
:
merge_requests_finder
-
boards_page
=
controller
.
controller_name
==
'boards'
-
board
=
local_assigns
.
fetch
(
:board
,
nil
)
-
board
=
local_assigns
[
:board
]
.issues-filters
.issues-details-filters.row-content-block.second-block
...
...
app/views/shared/issuable/_milestone_dropdown.html.haml
View file @
602c3e30
-
project
=
@target_project
||
@project
-
extra_class
=
extra_class
||
''
-
show_menu_above
=
show_menu_above
||
false
-
board
=
local_assigns
.
fetch
(
:board
,
nil
)
-
board_has_milestone
=
board
.
try
(
:milestone
).
present?
-
selected
=
local_assigns
.
fetch
(
:selected
,
nil
)
-
if
board_has_milestone
-
selected
=
board
.
milestone
-
board
=
local_assigns
[
:board
]
-
selected
=
board
.
try
(
:milestone
)
||
local_assigns
[
:selected
]
-
selected_text
=
selected
.
try
(
:title
)
||
params
[
:milestone_title
]
-
dropdown_title
=
local_assigns
.
fetch
(
:dropdown_title
,
"Filter by milestone"
)
...
...
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