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
667b71a4
Commit
667b71a4
authored
Oct 24, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close button
parent
79e9b890
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
_actions.html.haml
...views/projects/environments/components/_actions.html.haml
+1
-1
_environment.html.haml
...s/projects/environments/components/_environment.html.haml
+2
-0
_stop.html.haml
app/views/projects/environments/components/_stop.html.haml
+3
-5
No files found.
app/views/projects/environments/components/_actions.html.haml
View file @
667b71a4
-
if
can?
(
current_user
,
:create_deployment
,
@project
)
.inline
{
"v-if"
=>
"model.last_deployment.manual_actions && model.last_deployment.manual_actions.present"
}
.inline
{
"v-if"
=>
"model.last_deployment
&& model.last_deployment
.manual_actions && model.last_deployment.manual_actions.present"
}
.dropdown
%a
.dropdown-new.btn.btn-default
{
type:
"button"
,
"data-toggle"
=>
"dropdown"
}
=
custom_icon
(
'icon_play'
)
...
...
app/views/projects/environments/components/_environment.html.haml
View file @
667b71a4
...
...
@@ -53,6 +53,8 @@
.pull-right
{
"v-if"
=>
"!isFolder"
}
=
render
"projects/environments/components/external_url"
=
render
"projects/environments/components/actions"
=
render
"projects/environments/components/stop"
=
render
"projects/environments/components/rollback"
%tr
{
"v-if"
=>
"open && isFolder"
,
"is"
=>
"environment-item"
,
...
...
app/views/projects/environments/components/_stop.html.haml
View file @
667b71a4
-
if
can?
(
current_user
,
:create_deployment
,
@project
)
.inline
{
"v-if"
=>
"environment.stop_action"
}
-# TODO: Fix this link
-# link_to stop_namespace_project_environment_path(@project.namespace, @project, environment)
%a
{
":href"
=>
""
,
.inline
{
"v-if"
=>
"model.stop_action"
}
%a
.btn.stop-env-link
{
":href"
=>
"'#{namespace_project_environments_path(@project.namespace, @project)}/' + model.id"
,
"method"
=>
":post"
,
"rel"
=>
"nofollow"
,
"confirm"
=>
"Are you sure you want to stop this environment?"
}
=
icon
(
'stop'
,
class:
'stop-env-icon'
)
=
icon
(
"stop"
,
class:
"stop-env-icon"
)
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