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
7bab2791
Commit
7bab2791
authored
Nov 16, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix view that embeds abilities for the environments
parent
f55206ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+4
-5
spec/features/environments_spec.rb
spec/features/environments_spec.rb
+0
-1
No files found.
app/views/projects/environments/index.html.haml
View file @
7bab2791
...
@@ -4,16 +4,15 @@
...
@@ -4,16 +4,15 @@
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_tag
(
"environments/environments_bundle.js"
)
=
page_specific_javascript_tag
(
"environments/environments_bundle.js"
)
.commit-icon-svg.hidden
.commit-icon-svg.hidden
=
custom_icon
(
"icon_commit"
)
=
custom_icon
(
"icon_commit"
)
.play-icon-svg.hidden
.play-icon-svg.hidden
=
custom_icon
(
"icon_play"
)
=
custom_icon
(
"icon_play"
)
#environments-list-view
{
data:
{
environments_data:
environments_list_data
,
#environments-list-view
{
data:
{
environments_data:
environments_list_data
,
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@
environment
),
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@
project
).
to_s
,
"can-read-environment"
=>
can?
(
current_user
,
:read_environment
,
@project
),
"can-read-environment"
=>
can?
(
current_user
,
:read_environment
,
@project
)
.
to_s
,
"can-create-environm
net"
=>
can?
(
current_user
,
:create_environment
,
@project
)
,
"can-create-environm
ent"
=>
can?
(
current_user
,
:create_environment
,
@project
).
to_s
,
"project-environments-path"
=>
project_environments_path
(
@project
),
"project-environments-path"
=>
project_environments_path
(
@project
),
"project-stopped-environments-path"
=>
project_environments_path
(
@project
,
scope: :stopped
),
"project-stopped-environments-path"
=>
project_environments_path
(
@project
,
scope: :stopped
),
"new-environment-path"
=>
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
"new-environment-path"
=>
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
...
...
spec/features/environments_spec.rb
View file @
7bab2791
...
@@ -59,7 +59,6 @@ feature 'Environments', feature: true, js: true do
...
@@ -59,7 +59,6 @@ feature 'Environments', feature: true, js: true do
given
(
:deployment
)
{
create
(
:deployment
,
environment:
environment
)
}
given
(
:deployment
)
{
create
(
:deployment
,
environment:
environment
)
}
scenario
'does show deployment SHA'
do
scenario
'does show deployment SHA'
do
puts
page
.
body
expect
(
page
).
to
have_link
(
deployment
.
short_sha
)
expect
(
page
).
to
have_link
(
deployment
.
short_sha
)
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