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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
803bf517
Commit
803bf517
authored
Sep 05, 2018
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename BlobsHelper#dropdown_names
parent
ca92fcd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+6
-6
No files found.
app/helpers/blob_helper.rb
View file @
803bf517
...
...
@@ -158,14 +158,14 @@ module BlobHelper
end
def
licenses_for_select
@licenses_for_select
||=
dropdown_names
(
LicenseTemplateFinder
.
new
.
execute
)
@licenses_for_select
||=
template_dropdown_names
(
TemplateFinder
.
build
(
:licenses
)
.
execute
)
end
def
ref_project
@ref_project
||=
@target_project
||
@project
end
def
dropdown_names
(
items
)
def
template_
dropdown_names
(
items
)
grouped
=
items
.
group_by
(
&
:category
)
categories
=
grouped
.
keys
...
...
@@ -175,18 +175,18 @@ module BlobHelper
end
end
end
private
:dropdown_names
private
:
template_
dropdown_names
def
gitignore_names
@gitignore_names
||=
dropdown_names
(
TemplateFinder
.
new
(
:gitignores
).
execute
)
@gitignore_names
||=
template_dropdown_names
(
TemplateFinder
.
build
(
:gitignores
).
execute
)
end
def
gitlab_ci_ymls
@gitlab_ci_ymls
||=
dropdown_names
(
TemplateFinder
.
new
(
:gitlab_ci_ymls
).
execute
)
@gitlab_ci_ymls
||=
template_dropdown_names
(
TemplateFinder
.
build
(
:gitlab_ci_ymls
).
execute
)
end
def
dockerfile_names
@dockerfile_names
||=
dropdown_names
(
TemplateFinder
.
new
(
:dockerfiles
).
execute
)
@dockerfile_names
||=
template_dropdown_names
(
TemplateFinder
.
build
(
:dockerfiles
).
execute
)
end
def
blob_editor_paths
...
...
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