BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
environments_helper.rb
app/helpers/environments_helper.rb
+8
-0
index.html.haml
app/views/projects/environments/index.html.haml
+5
-2
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