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
82f06c29
Commit
82f06c29
authored
Dec 01, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-ee-master' into 'master'
Move EE helper to proper namespace See merge request !933
parents
8b37fc68
3f55b866
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
39 deletions
+30
-39
app/helpers/ee/issuables_helper.rb
app/helpers/ee/issuables_helper.rb
+0
-11
app/helpers/ee/issues_helper.rb
app/helpers/ee/issues_helper.rb
+30
-0
app/helpers/ee_issues_helper.rb
app/helpers/ee_issues_helper.rb
+0
-28
No files found.
app/helpers/ee/issuables_helper.rb
deleted
100644 → 0
View file @
8b37fc68
module
EE
module
IssuablesHelper
def
weight_dropdown_label
(
weight
)
if
Issue
.
weight_options
.
include?
(
weight
)
weight
else
h
(
weight
.
presence
||
'Weight'
)
end
end
end
end
app/helpers/ee/issues_helper.rb
0 → 100644
View file @
82f06c29
module
EE
module
IssuesHelper
def
weight_dropdown_tag
(
issuable
,
opts
=
{},
&
block
)
title
=
issuable
.
weight
||
'Weight'
additional_toggle_class
=
opts
.
delete
(
:toggle_class
)
options
=
{
toggle_class:
"js-weight-select
#{
additional_toggle_class
}
"
,
dropdown_class:
'dropdown-menu-selectable dropdown-menu-weight'
,
title:
'Select weight'
,
placeholder:
'Search weight'
,
data:
{
field_name:
"
#{
issuable
.
class
.
model_name
.
param_key
}
[weight]"
,
default_label:
'Weight'
}
}.
deep_merge
(
opts
)
dropdown_tag
(
title
,
options:
options
)
do
capture
(
&
block
)
end
end
def
weight_dropdown_label
(
weight
)
if
Issue
.
weight_options
.
include?
(
weight
)
weight
else
h
(
weight
.
presence
||
'Weight'
)
end
end
end
end
app/helpers/ee_issues_helper.rb
deleted
100644 → 0
View file @
8b37fc68
module
EeIssuesHelper
def
weight_dropdown_tag
(
issuable
,
opts
=
{},
&
block
)
title
=
issuable
.
weight
||
'Weight'
additional_toggle_class
=
opts
.
delete
(
:toggle_class
)
options
=
{
toggle_class:
"js-weight-select
#{
additional_toggle_class
}
"
,
dropdown_class:
'dropdown-menu-selectable dropdown-menu-weight'
,
title:
'Select weight'
,
placeholder:
'Search weight'
,
data:
{
field_name:
"
#{
issuable
.
class
.
model_name
.
param_key
}
[weight]"
,
default_label:
'Weight'
}
}.
deep_merge
(
opts
)
dropdown_tag
(
title
,
options:
options
)
do
capture
(
&
block
)
end
end
def
weight_dropdown_label
(
weight
)
if
Issue
.
weight_filter_options
.
include?
(
weight
)
weight
else
h
(
weight
.
presence
||
'Weight'
)
end
end
end
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