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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
eb26755d
Commit
eb26755d
authored
Jun 15, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create_deployment ability is need to create retry or rollback deployment
parent
2bed8db9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/ability.rb
app/models/ability.rb
+2
-2
app/views/projects/deployments/_deployment.html.haml
app/views/projects/deployments/_deployment.html.haml
+1
-1
No files found.
app/models/ability.rb
View file @
eb26755d
...
...
@@ -249,8 +249,7 @@ class Ability
:create_container_image
,
:update_container_image
,
:create_environment
,
:create_deployment
,
:update_deployment
:create_deployment
]
end
...
...
@@ -269,6 +268,7 @@ class Ability
:push_code_to_protected_branches
,
:update_project_snippet
,
:update_environment
,
:update_deployment
,
:admin_milestone
,
:admin_project_snippet
,
:admin_project_member
,
...
...
app/views/projects/deployments/_deployment.html.haml
View file @
eb26755d
...
...
@@ -14,7 +14,7 @@
#{
time_ago_with_tooltip
(
deployment
.
created_at
)
}
%td
-
if
can?
(
current_user
,
:
upd
ate_deployment
,
deployment
)
&&
deployment
.
deployable
-
if
can?
(
current_user
,
:
cre
ate_deployment
,
deployment
)
&&
deployment
.
deployable
.pull-right
=
link_to
retry_namespace_project_build_path
(
@project
.
namespace
,
@project
,
deployment
.
deployable
),
method: :post
,
class:
'btn btn-build'
do
-
if
deployment
.
last?
...
...
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