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
Léo-Paul Géneau
gitlab-ce
Commits
9d8de1c9
Commit
9d8de1c9
authored
Oct 21, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds actions
parent
6b71ca0c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
app/views/projects/environments/components/_actions.html.haml
...views/projects/environments/components/_actions.html.haml
+14
-0
app/views/projects/environments/components/_external_url.html.haml
.../projects/environments/components/_external_url.html.haml
+1
-1
app/views/projects/environments/components/_rollback.html.haml
...iews/projects/environments/components/_rollback.html.haml
+0
-0
app/views/projects/environments/components/_stop.html.haml
app/views/projects/environments/components/_stop.html.haml
+0
-0
No files found.
app/views/projects/environments/components/_actions.html.haml
0 → 100644
View file @
9d8de1c9
-
if
can?
(
current_user
,
:create_deployment
,
@project
)
.inline
{
"v-if"
=>
"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'
)
=
icon
(
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-align-right
%li
{
"v-for"
=>
"action in model.last_deployment.manual_actions"
}
-# transform this = link_to [:play, @project.namespace.becomes(Namespace), @project, action] into href
%a
{
data:
{
"method"
=>
":post"
,
"rel"
=>
"nofollow"
}}
=
custom_icon
(
'icon_play'
)
%span
{{action.name}}
\ No newline at end of file
app/views/projects/environments/components/_external_url.html.haml
View file @
9d8de1c9
...
...
@@ -2,4 +2,4 @@
%a
.btn.external-url
{
"v-if"
=>
"!isFolder && model.external_url"
,
":target"
=>
"_blank"
,
":href"
=>
"model.external_url"
}
=
icon
(
"external-link"
)
\ No newline at end of file
=
icon
(
"external-link"
)
app/views/projects/environments/components/_rollback.html.haml
0 → 100644
View file @
9d8de1c9
app/views/projects/environments/components/_stop.html.haml
0 → 100644
View file @
9d8de1c9
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