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
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
Show 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
...
@@ -158,14 +158,14 @@ module BlobHelper
end
end
def
licenses_for_select
def
licenses_for_select
@licenses_for_select
||=
dropdown_names
(
LicenseTemplateFinder
.
new
.
execute
)
@licenses_for_select
||=
template_dropdown_names
(
TemplateFinder
.
build
(
:licenses
)
.
execute
)
end
end
def
ref_project
def
ref_project
@ref_project
||=
@target_project
||
@project
@ref_project
||=
@target_project
||
@project
end
end
def
dropdown_names
(
items
)
def
template_
dropdown_names
(
items
)
grouped
=
items
.
group_by
(
&
:category
)
grouped
=
items
.
group_by
(
&
:category
)
categories
=
grouped
.
keys
categories
=
grouped
.
keys
...
@@ -175,18 +175,18 @@ module BlobHelper
...
@@ -175,18 +175,18 @@ module BlobHelper
end
end
end
end
end
end
private
:dropdown_names
private
:
template_
dropdown_names
def
gitignore_names
def
gitignore_names
@gitignore_names
||=
dropdown_names
(
TemplateFinder
.
new
(
:gitignores
).
execute
)
@gitignore_names
||=
template_dropdown_names
(
TemplateFinder
.
build
(
:gitignores
).
execute
)
end
end
def
gitlab_ci_ymls
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
end
def
dockerfile_names
def
dockerfile_names
@dockerfile_names
||=
dropdown_names
(
TemplateFinder
.
new
(
:dockerfiles
).
execute
)
@dockerfile_names
||=
template_dropdown_names
(
TemplateFinder
.
build
(
:dockerfiles
).
execute
)
end
end
def
blob_editor_paths
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