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
2c0f97cd
Commit
2c0f97cd
authored
Oct 14, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Includes page specific JS
parent
235213dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
app/helpers/environments_helper.rb
app/helpers/environments_helper.rb
+7
-0
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+5
-2
config/application.rb
config/application.rb
+1
-0
No files found.
app/helpers/environments_helper.rb
0 → 100644
View file @
2c0f97cd
module
EnvironmentsHelper
def
environments_list_data
{
endpoint:
namespace_project_environments_path
(
@project
.
namespace
,
@project
)
}
end
end
\ No newline at end of file
app/views/projects/environments/index.html.haml
View file @
2c0f97cd
...
...
@@ -2,6 +2,9 @@
-
page_title
"Environments"
=
render
"projects/pipelines/head"
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_tag
(
'environments/environments_bundle.js'
)
%div
{
class:
container_class
}
.top-area
%ul
.nav-links
...
...
@@ -22,7 +25,7 @@
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
.environments-container
.environments-container
#environments-list-view
{
"v-cloak"
=>
true
,
data:
environments_list_data
}
-
if
@all_environments
.
blank?
.blank-state.blank-state-no-icon
%h2
.blank-state-title
...
...
@@ -45,4 +48,4 @@
%th
Commit
%th
%th
.hidden-xs
=
render
@environments
/
= render @environments
config/application.rb
View file @
2c0f97cd
...
...
@@ -94,6 +94,7 @@ module Gitlab
config
.
assets
.
precompile
<<
"cycle_analytics/cycle_analytics_bundle.js"
config
.
assets
.
precompile
<<
"merge_conflicts/merge_conflicts_bundle.js"
config
.
assets
.
precompile
<<
"boards/test_utils/simulate_drag.js"
config
.
assets
.
precompile
<<
"environments/environments_bundle.js"
config
.
assets
.
precompile
<<
"blob_edit/blob_edit_bundle.js"
config
.
assets
.
precompile
<<
"snippet/snippet_bundle.js"
config
.
assets
.
precompile
<<
"lib/utils/*.js"
...
...
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